voice icon indicating copy to clipboard operation
voice copied to clipboard

"error": Object { "code": "7", "message": "7/No match", },

Open CHEN-CHI-TIN opened this issue 3 years ago • 11 comments
trafficstars

Hi, Is that anyone solve the problem about "message": "7/No match" in android? Or anyone have the plan B about this situation? I'm about to give up...😿

Please give me some suggestion, thanks a lot.🙏

CHEN-CHI-TIN avatar Sep 14 '22 18:09 CHEN-CHI-TIN

Same issue here ...

BastienSaulnier avatar Oct 17 '22 09:10 BastienSaulnier

any solutions?

amalraj7980 avatar Nov 09 '22 02:11 amalraj7980

Same here

hakardev avatar Nov 13 '22 08:11 hakardev

+1 same problem

abdoutech19 avatar Nov 21 '22 13:11 abdoutech19

+1 same problem

NguyenMinhThien98 avatar Nov 29 '22 09:11 NguyenMinhThien98

The solution we found with my company is actually to copy the library code, and make your own "handcrafted Android module" based on the lib code.

You can check how to do you own Android module here : https://reactnative.dev/docs/native-modules-android

And take advantage of the SpeechRecognizer native feature of Android : https://developer.android.com/reference/android/speech/SpeechRecognizer

Also, i noticed that the "no match" error (described here : https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_NO_MATCH with the "7" error code id ) often comes when you try nonsense speaking.

I mean, if your code is supposed to work and you say to your phone:

"Hello, i'm trying my feature" It may work.

But on the other hand, if you try garbage sentences (like I did): "Bleubleukfjdsghfjksdhkfjhdskj"

You will get a "no match" response from the lib, which is full of sense because the service won't be able to translate that to real text.

Hope this helps ;)

BastienSaulnier avatar Nov 29 '22 11:11 BastienSaulnier

is there any solution?😢

tayyabrajpoot12 avatar Feb 20 '23 03:02 tayyabrajpoot12

https://github.com/react-native-voice/voice/issues/159 be sure to have checked the "Virtual microphone uses hosta audio input" option, in Microphone options from the android emulator

Ibisobob-manuel avatar May 18 '23 12:05 Ibisobob-manuel

I have this error on a real device... am I the only one? :/

pierroo avatar Sep 12 '23 17:09 pierroo

I have this error on a real device... am I the only one? :/

did you try this await Voice.start('es_US', { RECOGNIZER_ENGINE: 'GOOGLE', EXTRA_PARTIAL_RESULTS: true, })

tayyabrajpoot12 avatar Sep 12 '23 17:09 tayyabrajpoot12

I have this error on a real device... am I the only one? :/

did you try this await Voice.start('es_US', { RECOGNIZER_ENGINE: 'GOOGLE', EXTRA_PARTIAL_RESULTS: true, })

Thank you for mentioning that; Actually the issue was just me speaking in french, when it was set to "en_US"...

However, not sure if that matters, but without your additional parameters I get two items in the array of values (both the same), whereas with it I only get one.

pierroo avatar Sep 13 '23 09:09 pierroo