diff --git a/packages/text-to-speech/src/index.ts b/packages/text-to-speech/src/index.ts index 5af829e30..a25af17bf 100644 --- a/packages/text-to-speech/src/index.ts +++ b/packages/text-to-speech/src/index.ts @@ -210,12 +210,12 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction( return res.status(500).send({ errorCode: 'SYNTHESIZER_ERROR' }) } const audioDataString = audioData.toString('hex') - // save audio data to cache for 12 hours + // save audio data to cache for 24 hours for mainly the newsletters await redisClient.set( cacheKey, JSON.stringify({ audioDataString, speechMarks }), { - EX: 3600 * 12, // in seconds + EX: 3600 * 24, // in seconds NX: true, } )