From 66d33ebd60ed12e18252d2031e26d5d8c6f27aef Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sat, 3 Jun 2023 09:15:45 -0400 Subject: [PATCH] change default tts cache duration to 4 hours --- lib/synth-audio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index d0524f5..ad5d1d8 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -30,7 +30,7 @@ const { const {SynthesizeSpeechRequest} = require('../stubs/riva/proto/riva_tts_pb'); const {AudioEncoding} = require('../stubs/riva/proto/riva_audio_pb'); const debug = require('debug')('jambonz:realtimedb-helpers'); -const EXPIRES = (process.env.JAMBONES_TTS_CACHE_DURATION_MINS || 24 * 60) * 60; // cache tts for 24 hours +const EXPIRES = (process.env.JAMBONES_TTS_CACHE_DURATION_MINS || 4 * 60) * 60; // cache tts for 4 hours const TMP_FOLDER = '/tmp'; /**