Azure-Samples / Cognitive-Speech-STT-Android

Android SDK for the Microsoft Speech-to-Text API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speech-api
Other
102 stars 58 forks source link

Getting timeout 'I/NLPLAT: ERROR: No Reco' when starting startMicAndRecognition() with SpeechRecognitionMode.LongDictation #74

Open roymasad opened 6 years ago

roymasad commented 6 years ago

Let me explain

When i start startMicAndRecognition() using SpeechRecognitionMode.LongDictation, and i speak anything immediately, the audio recognition works normally and i get results, but if i dont speak anything initially, it seems to timeout and auto shutdown/end the recognition.

I get an 'I/NLPLAT: ERROR: No Reco' in logcat

Can this behavior be configured differently? because i prefer to set it to listen and wait til it hears speech and not 'presume' a timeout error like it is now doing.

As a quick workaround to this, i am currently listening to onAudioEvent() to see if the recognition ended on startup, and restarting it with code ad infinitum til it finally hears speech and initializes normally.

roymasad commented 6 years ago

anyone from the microsoft dev team keeping an eye on this github repo ?

BeanStalka commented 6 years ago

Same error here, looks like this repo has been left for dead

no updates in the last 8 months!!!!!!