diff --git a/packages/api/src/utils/textToSpeech.ts b/packages/api/src/utils/textToSpeech.ts index b75265743..c0327ab63 100644 --- a/packages/api/src/utils/textToSpeech.ts +++ b/packages/api/src/utils/textToSpeech.ts @@ -189,10 +189,10 @@ export const synthesizeTextToSpeech = async ( }) logger.debug(`synthesizing ${ssml}`) const result = await speakSsmlAsyncPromise(ssml) - if (result.reason === ResultReason.Canceled) { - synthesizer.close() - throw new Error(result.errorDetails) - } + // if (result.reason === ResultReason.Canceled) { + // synthesizer.close() + // throw new Error(result.errorDetails) + // } timeOffset = timeOffset + result.audioDuration // characterOffset = characterOffset + htmlElement.innerText.length }