From 967fb3c6d50fdacc5ba2ba0e2ebad797f275b430 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 7 Sep 2022 22:56:37 +0800 Subject: [PATCH] Do not throw error if text is empty --- packages/text-to-speech/src/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/text-to-speech/src/index.ts b/packages/text-to-speech/src/index.ts index 3d35fa3a8..63f9a6631 100644 --- a/packages/text-to-speech/src/index.ts +++ b/packages/text-to-speech/src/index.ts @@ -160,9 +160,6 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction( try { const utteranceInput = req.body as UtteranceInput - if (!utteranceInput.text) { - return res.status(400).send({ errorCode: 'INVALID_DATA' }) - } const input: TextToSpeechInput = { ...utteranceInput, textType: 'utterance',