mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-22 09:37:56 +00:00
add defaul value for gather config
This commit is contained in:
@@ -24,7 +24,7 @@ class SpeechConfig extends Emitter {
|
|||||||
this.logger.debug({opts, sessionLevel: this.sessionConfig, turnLevel: this.turnConfig}, 'SpeechConfig updated');
|
this.logger.debug({opts, sessionLevel: this.sessionConfig, turnLevel: this.turnConfig}, 'SpeechConfig updated');
|
||||||
}
|
}
|
||||||
|
|
||||||
makeGatherTaskConfig({textPrompt, urlPrompt}) {
|
makeGatherTaskConfig({textPrompt, urlPrompt} = {}) {
|
||||||
const opts = JSON.parse(JSON.stringify(this.sessionConfig || {}));
|
const opts = JSON.parse(JSON.stringify(this.sessionConfig || {}));
|
||||||
const nextTurnKeys = Object.keys(this.turnConfig || {});
|
const nextTurnKeys = Object.keys(this.turnConfig || {});
|
||||||
const newKeys = nextTurnKeys.filter((k) => !(k in opts));
|
const newKeys = nextTurnKeys.filter((k) => !(k in opts));
|
||||||
|
|||||||
Reference in New Issue
Block a user