fix gather

This commit is contained in:
akirilyuk
2022-02-02 22:58:00 +01:00
parent e872d314b3
commit 2738299524
3 changed files with 8 additions and 1 deletions

View File

@@ -66,6 +66,11 @@ class SpeechConfig extends Emitter {
if (opts.recognizer) input.push('speech');
if (hasKeys(opts.dtmf)) input.push('digits');
if(opts.synthesizer){
// todo remove this once we add support for disabling tts cache
delete opts.synthesizer.disableTtsCache;
}
/* bargein settings */
const bargein = opts.bargein || {};
const speechBargein = Array.isArray(bargein.enable) && bargein.enable.includes('speech');