mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fix config verb can override recognizer *Options (#558)
* fix config verb can override recognizer *Options * wip * clean up gather and transcribe * fix failing testcase * fix failing testcase * fix failing testcase
This commit is contained in:
@@ -109,6 +109,7 @@ class TaskConfig extends Task {
|
||||
});
|
||||
|
||||
if (this.hasSynthesizer) {
|
||||
cs.synthesizer = this.synthesizer;
|
||||
cs.speechSynthesisVendor = this.synthesizer.vendor !== 'default'
|
||||
? this.synthesizer.vendor
|
||||
: cs.speechSynthesisVendor;
|
||||
@@ -138,6 +139,7 @@ class TaskConfig extends Task {
|
||||
this.logger.info({synthesizer: this.synthesizer}, 'Config: updated synthesizer');
|
||||
}
|
||||
if (this.hasRecognizer) {
|
||||
cs.recognizer = this.recognizer;
|
||||
cs.speechRecognizerVendor = this.recognizer.vendor !== 'default'
|
||||
? this.recognizer.vendor
|
||||
: cs.speechRecognizerVendor;
|
||||
|
||||
Reference in New Issue
Block a user