mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
nuance transcribe should have utteranceDetectionMode=multiple (#574)
* nuance transcribe should have utteranceDetectionMode=multiple * nuance transcribe should have utteranceDetectionMode=multiple
This commit is contained in:
@@ -46,6 +46,15 @@ class TaskTranscribe extends SttTask {
|
|||||||
|
|
||||||
async exec(cs, {ep, ep2}) {
|
async exec(cs, {ep, ep2}) {
|
||||||
await super.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);
|
const {updateSpeechCredentialLastUsed} = require('../utils/db-utils')(this.logger, cs.srf);
|
||||||
|
|
||||||
if (cs.hasGlobalSttHints) {
|
if (cs.hasGlobalSttHints) {
|
||||||
|
|||||||
Reference in New Issue
Block a user