mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 00:58:34 +00:00
Add ability to disable TTS cache for entire call session.
This commit is contained in:
@@ -342,7 +342,9 @@ class TaskSay extends TtsTask {
|
||||
evt.variable_tts_cache_filename &&
|
||||
!this.killed &&
|
||||
// if tts cache is not disabled, add the file to cache
|
||||
!this.disableTtsCache
|
||||
!this.disableTtsCache &&
|
||||
// has tts cache been disabled for the entire session
|
||||
!cs.disableTtsCache
|
||||
) {
|
||||
const text = parseTextFromSayString(this.text[segment]);
|
||||
this.logger.debug({text, cacheFile: evt.variable_tts_cache_filename}, 'Say:exec cache tts');
|
||||
|
||||
Reference in New Issue
Block a user