Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
augnitosdk
Advanced tools
AugnitoSDK lets you make use of the Speech Recognition AI. You can edit, format and complete reports at the speed of human speech, with the best-in-class accuracy
You can use Augnito SDK to make use of the Speech Recognition AI. To get access credentials or talk to us about your project, get in touch with us at partnerships@augnito.ai.
Install the library in your project
npm install augnitosdk
import { Augnito, AugnitoConfig, AugnitoAPIServer } from 'augnitosdk';
const augnitoConfig: AugnitoConfig = {
server: AugnitoAPIServer.INDIA,
accountCode: 'XXXXXXXXXXXXXXXXXXXXXX',
accessKey: 'XXXXXXXXXXXXXXXXXXXXXX',
userTag: 'user123',
sourceApp: 'MyAppName',
lmId: '38'
};
const augnito = new Augnito(augnitoConfig);
Now all you have to do is toggle the status when you want to connect/disconnect!
// Toggles the Speech API connection
augnito.toggleListening();
That's all!
Note: If the client does not start, it may be that onMicrophoneOnError was called. This was implemented to prevent a user from opening a conection in multiple tabs. You can use requestMicOff to force close other connections.
augnito.onMicrophoneOnError = (isWebClient: boolean) => {
//If you want to use Augnito in this tab.
augnito.requestMicOff();
augnito.toggleListening();
};
Whether you want to use the Augnito App as your microphone, or you want to develop your own app, we got you covered.
All you have to do is initialize the mobile configuration. The SDK will generate a value that you need to use to generate a QR code which should be scanned in the App.
import { AugnitoMobileConfig } from 'augnitosdk';
const mobileConfig: AugnitoMobileConfig = {
enableLogs: false
};
const augnitoMobile = augnito.initMobileClient(mobileConfig);
//Generate a QR Code with the following value
const code = augnito.getQRCode();
Name | type | Description |
---|---|---|
onPartialResult | (text: string) => void | Partial Result generated from the server |
onFinalResult | (finalText: Recipe) => boolean | A final result is called when text has been processed by the Speech Server. Returns true to stop the processing in the SDK |
onCommandResult | (command: Recipe) => boolean | A command generated from the server. Returns true to stop the processing in the SDK |
onStateChanged | (isConnected: boolean) => void | Callback to indicate the status of the connection has changed. |
onSessionEvent | (data: AugnitoSocketResponse) => void | Callback to intercept Session Events |
onIdleMic | () => void | Callback when the Mic is idle for 5 minutes |
onMicrophoneOnError | (isWebClient: boolean) => void | Callback triggered when trying to start the connection, but it fails because it is already opened. (It can be opened in another tab, or it was not closed properly) |
Name | type | Description |
---|---|---|
onConnectionRequest | () => void | Callback when a mobile client is requesting to connect |
onMobileScan | () => void | Callback when a mobile client has scanned the QR Code |
prop | type | notes |
---|---|---|
toggleListening | void | Toggles the Speech API connection: if already connected, it will stop the web socket; otherwise, it will start a new connection. |
isConnected | boolean | Returns the status of the web socket: true if connected; otherwise false. |
getQRCode | string | Returns the Generated Value for the QR Code (If and only if the DeviceId was provided). |
dispose | void | Dispose all resources. |
initMobileClient | AugnitoMobile | Creates a web socket for getting notifications from client mobile application: only to be used with Mobile App |
apisFactory | FactoryAPI | Returns an Abstract Factory to create different API Clients. |
requestMicOff | void | Sends a request to close all opened connections. |
name | type | notes |
---|---|---|
getMacros | Promise: MacroResult | Returns a list of macros for the specified user. |
upsertMacro | Promis: MacroResult | Creates or Updates a Macro for the specified user. |
deleteMacro | Promise: MacroResult | Deletes a Macro for the specified user. |
// If you already have an augnito client..
const macrosClient = augnito.apisFactory.getMacrosAPI();
// OR
import { MacrosAPI } from 'augnitosdk';
const macrosClient = new MacrosAPI(
accountCode,
accessKey,
AugnitoAPIServer.INDIA
);
macrosClient
.getMacros({
UserTag: userTag
})
.then((result) => {
console.log(result);
});
FAQs
AugnitoSDK lets you make use of the Speech Recognition AI. You can edit, format and complete reports at the speed of human speech, with the best-in-class accuracy
The npm package augnitosdk receives a total of 1,773 weekly downloads. As such, augnitosdk popularity was classified as popular.
We found that augnitosdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.