You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
I managed to wrap the entire Cognitive Speech Library in a cordova plugin. ( .aar sdk file and .so native library arm files)
It works, i can initialize and start listening on the mic normally getting results back on onFinalResponseReceived() and sending them back to the webview cordova app.
All works well, apart from onAudioEvent(), when packaged as cordova plugin, that function doesnt fire, so i cant detect when speech recognition is/stopped working.
The problem isnt that i cant send results back, no in the native plugin code itself onAudioEvent() no longer triggers.
this is my class relevant parts
public class BingSpeechPlugin extends CordovaPlugin implements ISpeechRecognitionServerEvents
@redphoenix2k , can you please share the cordova plugin created by you, because even i need to use it in my hybrid app. So instead of reinventing the wheel, if you provide the plugin already created then would reduce our development time. If possible, please try to attach zip file of it
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Let me explain
I managed to wrap the entire Cognitive Speech Library in a cordova plugin. ( .aar sdk file and .so native library arm files)
It works, i can initialize and start listening on the mic normally getting results back on onFinalResponseReceived() and sending them back to the webview cordova app.
All works well, apart from onAudioEvent(), when packaged as cordova plugin, that function doesnt fire, so i cant detect when speech recognition is/stopped working.
The problem isnt that i cant send results back, no in the native plugin code itself onAudioEvent() no longer triggers.
this is my class relevant parts
public class BingSpeechPlugin extends CordovaPlugin implements ISpeechRecognitionServerEvents
the same code works fine and onAudioEvent() triggers properly if run directly as a native app from android studio without the cordova plugin package.
startMicAndRecognition() works fine in cordova plugin mode and i do get results on onFinalResponseReceived()
onAudioEvent() on the other hand doesnt seem to auto trigger anymore
The text was updated successfully, but these errors were encountered: