From c0b56d4fc6124c2a52431e96511f5253ba94cd9a Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 17 May 2024 11:19:01 -0400 Subject: [PATCH] per email from microsoft, do not restart STT connection when we get a no audio event (#754) --- lib/tasks/gather.js | 4 ++-- lib/tasks/transcribe.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 834b0c0f..c072f603 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -376,8 +376,8 @@ class TaskGather extends SttTask { this.bugname = `${this.bugname_prefix}azure_transcribe`; this.addCustomEventListener( ep, AzureTranscriptionEvents.Transcription, this._onTranscription.bind(this, cs, ep)); - this.addCustomEventListener(ep, AzureTranscriptionEvents.NoSpeechDetected, - this._onNoSpeechDetected.bind(this, cs, ep)); + //this.addCustomEventListener(ep, AzureTranscriptionEvents.NoSpeechDetected, + //this._onNoSpeechDetected.bind(this, cs, ep)); this.addCustomEventListener(ep, AzureTranscriptionEvents.VadDetected, this._onVadDetected.bind(this, cs, ep)); break; case 'nuance': diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index 4dc82dc5..85ed6733 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -197,8 +197,8 @@ class TaskTranscribe extends SttTask { this.bugname = `${this.bugname_prefix}azure_transcribe`; this.addCustomEventListener(ep, AzureTranscriptionEvents.Transcription, this._onTranscription.bind(this, cs, ep, channel)); - this.addCustomEventListener(ep, AzureTranscriptionEvents.NoSpeechDetected, - this._onNoAudio.bind(this, cs, ep, channel)); + //this.addCustomEventListener(ep, AzureTranscriptionEvents.NoSpeechDetected, + // this._onNoAudio.bind(this, cs, ep, channel)); break; case 'nuance': this.bugname = `${this.bugname_prefix}nuance_transcribe`;