mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
add support for session config & cleanup
This commit is contained in:
@@ -26,11 +26,18 @@ class SpeechConfig extends Emitter {
|
||||
session
|
||||
);
|
||||
}
|
||||
//this.turnConfig = nextTurn;
|
||||
this.logger.debug({opts, sessionLevel: this.sessionConfig}, 'SpeechConfig updated');
|
||||
}
|
||||
|
||||
makeGatherTaskConfig({textPrompt, urlPrompt, turnConfig} = {}) {
|
||||
makeSayTaskConfig({text, turnConfig = {}} = {}) {
|
||||
const synthesizer = lodash.merge({}, this.sessionConfig.synthesizer, turnConfig);
|
||||
return {
|
||||
text,
|
||||
synthesizer
|
||||
};
|
||||
}
|
||||
|
||||
makeGatherTaskConfig({textPrompt, urlPrompt, turnConfig = {}} = {}) {
|
||||
// we merge from top to bottom deeply so we wil have
|
||||
// defaults from session config and then will override them via turn config
|
||||
const opts = lodash.merge(
|
||||
|
||||
Reference in New Issue
Block a user