Voice: {"message": "7/No match"} error on Android

Created on 2 Mar 2021  路  7Comments  路  Source: react-native-voice/voice

iOS works seamlessly perfect but on android it throws such error. i put only console.log for every event so that you can see the logs more clearly.

[Tue Mar 02 2021 14:24:26.978]  LOG      services:  ["com.google.android.googlequicksearchbox"]
[Tue Mar 02 2021 14:24:28.464]  LOG      onSpeechStart:  {"error": false}
[Tue Mar 02 2021 14:24:28.578]  LOG      onSpeechVolumeChanged:  {"value": -2}
[Tue Mar 02 2021 14:24:28.817]  LOG      onSpeechVolumeChanged:  {"value": -0.440000057220459}
[Tue Mar 02 2021 14:24:28.849]  LOG      onSpeechVolumeChanged:  {"value": -2}
[Tue Mar 02 2021 14:24:29.360]  LOG      onSpeechVolumeChanged:  {"value": 1.119999885559082}
[Tue Mar 02 2021 14:24:29.710]  LOG      onSpeechVolumeChanged:  {"value": 0.039999961853027344}
[Tue Mar 02 2021 14:24:29.800]  LOG      onSpeechVolumeChanged:  {"value": 0.7599999904632568}
[Tue Mar 02 2021 14:24:29.104]  LOG      onSpeechVolumeChanged:  {"value": -0.440000057220459}
[Tue Mar 02 2021 14:24:29.113]  LOG      onSpeechVolumeChanged:  {"value": 0.8799998760223389}
[Tue Mar 02 2021 14:24:29.210]  LOG      onSpeechVolumeChanged:  {"value": 0.16000008583068848}
[Tue Mar 02 2021 14:24:29.212]  LOG      onSpeechVolumeChanged:  {"value": 1}
[Tue Mar 02 2021 14:24:29.212]  LOG      onSpeechVolumeChanged:  {"value": 10}
[Tue Mar 02 2021 14:24:29.469]  LOG      onSpeechVolumeChanged:  {"value": -2}
[Tue Mar 02 2021 14:24:33.729]  LOG      onSpeechError:  {"error": {"message": "7/No match"}}

and this is my start function with options:

        Voice.start('en-US', {
          RECOGNIZER_ENGINE: 'services',
          EXTRA_PARTIAL_RESULTS: true,
        })

any help will be appreciated, thank you

Most helpful comment

Getting Same Issue. Any help?

All 7 comments

ok) it's easy, just no match )

In my case It's not so applicable to drop recognition so fast and I Ignore this error and start recognition again.

  if (message === '7/No match') {
    await Voice.start('en-US');

    return;
  }

works well, and I can wait for voice more then one minute, but with one issue, on each 6 seconds android play BIP sound

ok) it's easy, just no match )

In my case It's not so applicable to drop recognition so fast and I Ignore this error and start recognition again.

  if (message === '7/No match') {
    await Voice.start('en-US');

    return;
  }

works well, and I can wait for voice more then one minute, but with one issue, on each 6 seconds android play BIP sound

Interesting work around. Any insights on why this might be throwing?

Getting Same Issue. Any help?

ok) it's easy, just no match )

In my case It's not so applicable to drop recognition so fast and I Ignore this error and start recognition again.

  if (message === '7/No match') {
    await Voice.start('en-US');

    return;
  }

works well, and I can wait for voice more then one minute, but with one issue, on each 6 seconds android play BIP sound

This did not solve the issue for me.
In my case this error is thrown within a few seconds (around 5 secs) after voice.start is called and it is not recognizing any spoken speech during that time (not calling onSpeechPartialResults / onSpeechResults / onSpeechRecognized).
It is giving error each time it starts the voice. Hence going in loop if I try to start voice again when error occurs.

Hey guys! Any solution for this issue? Thanks!

Not working, getting same issue

need help on this please. still getting this issues on some android

Was this page helpful?
0 / 5 - 0 ratings

Related issues

henrych4 picture henrych4  路  8Comments

alvaro1728 picture alvaro1728  路  3Comments

alvaro1728 picture alvaro1728  路  5Comments

vaibhgupta09 picture vaibhgupta09  路  4Comments

tiennguyen9988 picture tiennguyen9988  路  5Comments