Android Continuous speech recognition returns ERROR_NO_MATCH too quickly

前端 未结 2 1341
星月不相逢
星月不相逢 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 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

提交回复
热议问题