mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Do not throw error if failed to synthesize self-closing tags elements
This commit is contained in:
parent
a00116621e
commit
b337735c9d
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue