Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin does not receive events (related with double start need?) #66

Open
carlos-alonso opened this issue Aug 19, 2016 · 0 comments
Open

Comments

@carlos-alonso
Copy link

Hi,

After the first run the plugin seems to not receive correctly events. I have tried several coding examples using the Speech recognizer and all have the same behaviour. In the background the speech recognition seems to do its job but the plugin does not process any events as onspeechstart/end an so on. The double start workaround -issue 46- seems to fix it a bit, but not ever.

Looking at logcat the log shows that events are fired, but no one process them.

I/MediaFocusControl(  758):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@6e031dfcom.google.android.apps.gsa.speech.audio.c.a$1@2e215e2c
D/SpeechRecognition( 9483): ready for speech
D/SpeechRecognition( 9483): begin speech
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
W/CordovaPlugin( 9483): Result was: {"type":"speechstart"}
D/SpeechRecognition( 9483): partial results
D/SpeechRecognition( 9483): partial results
D/SpeechRecognition( 9483): partial results
D/SpeechRecognition( 9483): partial results
D/SpeechRecognition( 9483): partial results
D/SpeechRecognition( 9483): partial results
D/SpeechRecognition( 9483): partial results
I/MicrophoneInputStream(10503): mic_close com.google.android.apps.gsa.speech.audio.ai@13fd7c3e
D/SpeechRecognition( 9483): end speech
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
W/CordovaPlugin( 9483): Result was: {"type":"speechend"}
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
D/SpeechRecognition( 9483): results
D/SpeechRecognition( 9483): onResults Bundle[mParcelledData.dataSize=268]
D/SpeechRecognition( 9483): fire recognition event
W/CordovaPlugin( 9483): Attempted to send a second callback for ID: SpeechRecognition552937109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant