mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Return status=500 if no audio data returned by synthesis api
This commit is contained in:
parent
7c8b057f85
commit
a729caa458
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
}
|
||||
// synthesize text to speech if cache miss
|
||||
const { audioData, speechMarks } = await synthesizeTextToSpeech(input)
|
||||
if (!audioData) {
|
||||
if (!audioData || audioData.length === 0) {
|
||||
return res.status(500).send({ errorCode: 'SYNTHESIZER_ERROR' })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue