mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
bugfix #223: early hints should not be enabled with continuous asr is used in gather
This commit is contained in:
@@ -143,14 +143,6 @@ class TaskGather extends Task {
|
|||||||
this.logger.debug({hints: this.hints, hintsBoost: this.hintsBoost},
|
this.logger.debug({hints: this.hints, hintsBoost: this.hintsBoost},
|
||||||
'Gather:exec - applying global sttHints');
|
'Gather:exec - applying global sttHints');
|
||||||
}
|
}
|
||||||
if (process.env.JAMBONZ_GATHER_EARLY_HINTS_MATCH &&
|
|
||||||
!this.isContinuousAsr &&
|
|
||||||
this.hints.length > 0 && this.hints.length <= 10) {
|
|
||||||
this.earlyHintsMatch = true;
|
|
||||||
this.interim = true;
|
|
||||||
this.logger.debug('Gather:exec - early hints match enabled');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cs.hasAltLanguages) {
|
if (cs.hasAltLanguages) {
|
||||||
this.altLanguages = this.altLanguages.concat(cs.altLanguages);
|
this.altLanguages = this.altLanguages.concat(cs.altLanguages);
|
||||||
this.logger.debug({altLanguages: this.altLanguages},
|
this.logger.debug({altLanguages: this.altLanguages},
|
||||||
@@ -168,6 +160,14 @@ class TaskGather extends Task {
|
|||||||
asrDtmfTerminationDigit: this.asrDtmfTerminationDigit
|
asrDtmfTerminationDigit: this.asrDtmfTerminationDigit
|
||||||
}, 'Gather:exec - enabling continuous ASR since it is turned on for the session');
|
}, 'Gather:exec - enabling continuous ASR since it is turned on for the session');
|
||||||
}
|
}
|
||||||
|
if (process.env.JAMBONZ_GATHER_EARLY_HINTS_MATCH &&
|
||||||
|
!this.isContinuousAsr &&
|
||||||
|
this.hints.length > 0 && this.hints.length <= 10) {
|
||||||
|
this.earlyHintsMatch = true;
|
||||||
|
this.interim = true;
|
||||||
|
this.logger.debug('Gather:exec - early hints match enabled');
|
||||||
|
}
|
||||||
|
|
||||||
this.ep = ep;
|
this.ep = ep;
|
||||||
if ('default' === this.vendor || !this.vendor) this.vendor = cs.speechRecognizerVendor;
|
if ('default' === this.vendor || !this.vendor) this.vendor = cs.speechRecognizerVendor;
|
||||||
if ('default' === this.language || !this.language) this.language = cs.speechRecognizerLanguage;
|
if ('default' === this.language || !this.language) this.language = cs.speechRecognizerLanguage;
|
||||||
|
|||||||
Reference in New Issue
Block a user