voice icon indicating copy to clipboard operation
voice copied to clipboard

onSpeechError: {"error": {"code": "recognition_fail", "message": "1107/The operation couldn’t be completed. (kAFAssistantErrorDomain error 1107.)"}}

Open Njinou opened this issue 3 years ago • 7 comments

Would anyone please save my day with this error on IOS. I am using the latest version of react native.

Njinou avatar Jun 21 '22 09:06 Njinou

@Njinou any luck getting the same error first click

ubaidh avatar Jun 29 '22 08:06 ubaidh

@Njinou any luck getting the same error first click

Sure, on the IOs simulator, menu click on device and then erase all the content and settings per the screenshot Screen Shot 2022-06-29 at 4 54 11 AM

Njinou avatar Jun 29 '22 09:06 Njinou

menu click on device and then

still the issue is there after erasing all the content. I have to press the mic at lease 3 time to make it work .

ubaidh avatar Jun 29 '22 11:06 ubaidh

menu click on device and then

still the issue is there after erasing all the content. I have to press the mic at lease 3 time to make it work .

If the error appear when you click stop, then make sure to destroy the record when stopping (await Voice.destroy();)

Njinou avatar Jun 29 '22 22:06 Njinou

The solution I came up with was this

async onSpeechError(e) {
    this.setState({
      error: e,
      listeningToAudio: false,
    });
    this.startRecognizing();
    console.log('speech error', e.error);
  }

works fine. hope doesn't break

menu click on device and then

still the issue is there after erasing all the content. I have to press the mic at lease 3 time to make it work .

If the error appear when you click stop, then make sure to destroy the record when stopping (await Voice.destroy();)

ubaidh avatar Jun 30 '22 08:06 ubaidh

This does not resolve this issue. still getting same issue

DeepakM02 avatar Dec 08 '22 10:12 DeepakM02

Resolve with me when I changed the language key to 'en-GB' await Voice.start('en-GB'); As mentioned in 293#issuecomment

muathkhatib avatar Dec 14 '22 17:12 muathkhatib