Jovo client web Unhandled error at peechSynthesisUtterance.synthesis.e.onerror (SpeechSynthesizer.ts:170)


#1

Can someone help me please. Im trying to implement jovo client web and i got this error when i call this enpoint:
client.createRequest({ type: RequestType.Text, body: text }).send();
Capture1


Request and response are ok


#2

The SpeechRecognizerEvent error is “not-allowed”.

    recognition.onerror = (err: any) => {
      if (err.error === 'aborted') {
        return;
      }
      this.emit(SpeechRecognizerEvent.Error, err);
    };

#3

Hello there,

thanks for reporting a potential bug.

It looks like your OS or browser is blocking your microphone from being used.

‘not-allowed’ is only emitted if the user-agent disallows any input capturing. For more information take a look here: https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/error

Please make sure that the website and OS have permissions to use your microphone.

Another possible reason is, that the app is not on localhost and therefore requires https.

Another thing I can imagine is, that the app is wrapped in an iframe. In that case you will have to pass allow=“microphone”.

I sadly could not reproduce the issue but we’ve had a similar error with a laptop which had limited permissions.