Share via

uncaught exception using TTS

waymorphood 1 Reputation point
2022-09-02T13:57:00.163+00:00

I am using SpeechSynthesizer for TTS from "microsoft-cognitiveservices-speech-sdk"

Intermittently I the voice does not emit audio and I see this in the console.log:

SpeakerAudioDestination.js?38ca:132 Uncaught DOMException: Failed to set the 'duration' property on 'MediaSource': The 'updating' attribute is true on one or more of this MediaSource's SourceBuffers.
at privMediaSource.onsourceopen (webpack-internal:///./node_modules/microsoft-cognitiveservices-speech-sdk/distrib/es2015/src/sdk/Audio/SpeakerAudioDestination.js:138:51)

Community Center | Not monitored

1 answer

Sort by: Most helpful
  1. waymorphood 1 Reputation point
    2022-09-08T15:54:18.283+00:00

    Hi Yutong!

    I've narrowed this down. Our application uses SpeechToText (startContinuousRecognitionAsync) and then performs Text To Speech (speakTextAsync), both using cognitiveservices SDK. The above error only happens when we use STT and TTS. The code for TTS is attached.239058-tts-managerts.txt

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.