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 sync
API
recognizeKeywordFromMic()
recognizeKeywordFromMic() => Promise<RecognizeResult>
Returns: Promise<RecognizeResult>
addListener('keywordResult', ...)
addListener(eventName: 'keywordResult', listenerFunc: (data: KeywordResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Provides 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 |