Lagging issue with Android Speech Recognition -
have experienced problem recently? there long lag between 'when stop speaking' , 'when android speech recognition stops listening'. "silence period" lot shorter previously, , it's long. around 1-2 seconds, 10 seconds. didn't change in our code.
intent intent = new intent(recognizerintent.action_recognize_speech); intent.putextra(recognizerintent.extra_language_model, recognizerintent.language_model_free_form); intent.putextra(recognizerintent.extra_prompt, "speak now..."); startactivityforresult(intent, request_code);
yes, have exact same problem android 4.4.2 (htc 1 m8). setting options intent.putextra(recognizerintent.extra_speech_input_complete_silence_length_millis, new long(1000)) shorten listening time not seem take effect. used shoot down recognition dialog after 6 seconds older phones not automatically close it, ugly worked fine, results in nothing being recognized unless increase timeout 6 on 10 seconds. immutable 10 seconds default seems undocumented, such become trial , error find out works across devices , android versions.
Comments
Post a Comment