improve var naming

This commit is contained in:
akirilyuk
2022-02-03 17:58:26 +01:00
parent 8163c33462
commit 53e5360ab3
4 changed files with 32 additions and 21 deletions

View File

@@ -31,13 +31,13 @@ class SpeechConfig extends Emitter {
/**
* check if we should skip all nodes until next bot input
*/
get skipUntilBotInput(){
return this.sessionConfig.bargein?.skipUntilBotInput === false;
get skipUntilBotInput() {
return this.sessionConfig.bargein?.skipUntilBotInput === false;
}
/**
* Check if barge is enabled on session level
*/
get bargeInEnabled(){
get bargeInEnabled() {
return this.sessionConfig.bargein?.enable?.length > 0;
}
@@ -79,7 +79,7 @@ class SpeechConfig extends Emitter {
if (opts.recognizer) input.push('speech');
if (hasKeys(opts.dtmf)) input.push('digits');
if(opts.synthesizer){
if (opts.synthesizer) {
// todo remove this once we add support for disabling tts cache
delete opts.synthesizer.disableTtsCache;
}
@@ -126,7 +126,7 @@ class SpeechConfig extends Emitter {
noInputSpeech,
noInputUrl
},
dontListenAfterSpeech
listenAfterSpeech: !dontListenAfterSpeech
};
const final = stripNulls(config);