add more logs

This commit is contained in:
akirilyuk
2022-02-02 22:15:57 +01:00
parent ba994af012
commit 78869e4bb8
2 changed files with 2 additions and 1 deletions

View File

@@ -192,6 +192,7 @@ class Cognigy extends Task {
_makeSayTask({ text, turnConfig } = {}) { _makeSayTask({ text, turnConfig } = {}) {
this.logger.debug({text, turnConfig}, '_makeSayTask'); this.logger.debug({text, turnConfig}, '_makeSayTask');
const config = this.config.makeSayTaskConfig({text, turnConfig }); const config = this.config.makeSayTaskConfig({text, turnConfig });
this.logger.debug({config}, "created say task config");
const say = makeTask(this.logger, { say: config }, this); const say = makeTask(this.logger, { say: config }, this);
return say; return say;
} }

View File

@@ -30,7 +30,7 @@ class SpeechConfig extends Emitter {
} }
makeSayTaskConfig({text, turnConfig = {}} = {}) { makeSayTaskConfig({text, turnConfig = {}} = {}) {
const synthesizer = lodash.merge({}, this.sessionConfig.synthesizer, turnConfig); const synthesizer = lodash.merge({}, this.sessionConfig.synthesizer, turnConfig.synthesizer);
return { return {
text, text,
synthesizer synthesizer