mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fix config.transcribe should not override config.transcribe.recognizer (#817)
This commit is contained in:
@@ -249,12 +249,14 @@ class TaskConfig extends Task {
|
|||||||
}
|
}
|
||||||
if (this.hasTranscribe) {
|
if (this.hasTranscribe) {
|
||||||
if (this.transcribe.enable) {
|
if (this.transcribe.enable) {
|
||||||
|
if (!this.transcribeOpts.recognizer) {
|
||||||
this.transcribeOpts.recognizer = this.hasRecognizer ?
|
this.transcribeOpts.recognizer = this.hasRecognizer ?
|
||||||
this.recognizer :
|
this.recognizer :
|
||||||
{
|
{
|
||||||
vendor: cs.speechRecognizerVendor,
|
vendor: cs.speechRecognizerVendor,
|
||||||
language: cs.speechRecognizerLanguage
|
language: cs.speechRecognizerLanguage
|
||||||
};
|
};
|
||||||
|
}
|
||||||
this.logger.debug(this.transcribeOpts, 'Config: enabling transcribe');
|
this.logger.debug(this.transcribeOpts, 'Config: enabling transcribe');
|
||||||
cs.startBackgroundTask('transcribe', this.transcribeOpts);
|
cs.startBackgroundTask('transcribe', this.transcribeOpts);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user