mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-22 01:27:55 +00:00
improve var naming
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user