Android Continuous speech recognition returns ERROR_NO_MATCH too quickly

前端 未结 2 1324
星月不相逢
星月不相逢 2021-01-02 08:28

I\'ve tried to implement continuous SpeechRecognition mechanism. When I start speech recognition I get following messages in logcat:

06-05 12:22:32.892 11753         


        
相关标签:
2条回答
  • 2021-01-02 08:59

    Yes you are correct. Google speech recognition is linked to their "Google App". Since version 5.10 (Feb.2016) things have started to go wrong and with recent version 6 it is a complete mess! See my thread here in the Basic4Android forum: https://www.b4x.com/android/forum/threads/google-speech-recognition-sr-not-working-properly-anymore.68871/

    0 讨论(0)
  • 2021-01-02 09:23

    This is a known bug, which I filed a report on. You can reproduce the issue using this simple gist.

    The only way around it, is to recreate the SpeechRecognizer object every time. see edit. This causes other issues, as mentioned in the gist, but none that will cause a problem for your app.

    Google will eventually find a way to prevent continuous listening, as it's not what the API was designed for. You're better off looking at PocketSphinx as a long term option.

    EDIT 22.06.16 - With the most recent Google release, the behaviour has changed for the worse. A new solution is linked from the gist which subclasses the RecognitionListener to only react to 'genuine' callbacks.

    EDIT 01.07.16" - See this question for another new bug

    0 讨论(0)
提交回复
热议问题