more logs

This commit is contained in:
akirilyuk
2022-02-26 23:27:37 +01:00
parent 22440843d9
commit 87ef510dea

View File

@@ -197,6 +197,7 @@ class TaskGather extends Task {
}
async _initSpeech(cs, ep) {
this.logger.info("started listening on speech events initSpeechEnter");
const opts = {};
if (this.vad.enable) {
@@ -257,7 +258,7 @@ class TaskGather extends Task {
ep.addCustomEventListener(AzureTranscriptionEvents.Transcription, this._onTranscription.bind(this, cs, ep));
ep.addCustomEventListener(AzureTranscriptionEvents.NoSpeechDetected, this._onNoSpeechDetected.bind(this, cs, ep));
}
this.logger.info("started listening on speech events");
this.logger.info("started listening on speech events initSpeechDone");
await ep.set(opts)
.catch((err) => this.logger.info(err, 'Error setting channel variables'));
}