gotev / android-speech

Android speech recognition and text to speech made easy
http://gotev.github.io/android-speech/
Apache License 2.0
486 stars 157 forks source link

SpeechRecognitionException: 7 - No recognition result matched. Try turning on partial results as a workaround. #60

Closed TinySonhh closed 2 years ago

TinySonhh commented 2 years ago

Hi,

Recently, I faced this error on Android 11

net.gotev.speech.SpeechRecognitionException: 7 - No recognition result matched. Try turning on partial results as a workaround. at net.gotev.speech.engine.BaseSpeechRecognitionEngine.onError(BaseSpeechRecognitionEngine.java:156) at android.speech.SpeechRecognizer$InternalListener$1.handleMessage(SpeechRecognizer.java:453) at android.os.Handler.dispatchMessage(Handler.java:106)

Triggered onStartOfSpeech onSpeechRmsChanged onSpeechResult (no result data)

not triggered onSpeechPartialResults

Can you please advice me for the solution?

gotev commented 2 years ago

It means Google Voice Search was unable to recognize what's being said. It may happen in offline mode or when using a least supported language by Google.