From 2ec1460b4e456237f45178ac98029aa87a31c178 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Thu, 21 Dec 2023 06:44:08 +0700 Subject: [PATCH] nuance transcribe should have utteranceDetectionMode=multiple (#574) * nuance transcribe should have utteranceDetectionMode=multiple * nuance transcribe should have utteranceDetectionMode=multiple --- lib/tasks/transcribe.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index 7e4eb881..fdbd9fc9 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -46,6 +46,15 @@ class TaskTranscribe extends SttTask { async exec(cs, {ep, ep2}) { await super.exec(cs, {ep, ep2}); + + if (this.data.recognizer.vendor === 'nuance') { + this.data.recognizer.nuanceOptions = { + // by default, nuance STT will recognize only 1st utterance. + // enable multiple allow nuance detact all utterances + utteranceDetectionMode: 'multiple', + ...this.data.recognizer.nuanceOptions + }; + } const {updateSpeechCredentialLastUsed} = require('../utils/db-utils')(this.logger, cs.srf); if (cs.hasGlobalSttHints) {