capacitor-plugin-azure-keyword
v0.0.1
Published
This project hosts the samples for the Microsoft Cognitive Services Speech SDK.
Downloads
3
Readme
capacitor-plugin-azure-keyword
This project hosts the samples for the Microsoft Cognitive Services Speech SDK.
Install
npm install capacitor-plugin-azure-keyword
npx cap syncAPI
recognizeKeywordFromMic()
recognizeKeywordFromMic() => Promise<RecognizeResult>Returns: Promise<RecognizeResult>
addListener('keywordResult', ...)
addListener(eventName: 'keywordResult', listenerFunc: (data: KeywordResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandleProvides keyword result.
| Param | Type |
| ------------------ | -------------------------------------------------------------------------- |
| eventName | 'keywordResult' |
| listenerFunc | (data: KeywordResult) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Since: 0.0.1
Interfaces
RecognizeResult
| Prop | Type |
| --------------------- | -------------------- |
| isRecognizing | boolean |
| recognizeString | string |
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
KeywordResult
| Prop | Type |
| ------------- | ------------------- |
| reason | number |
| keyword | string |
