bugfix: handle gather/transcribe where vendor not explicitly specified #187

This commit is contained in:
Dave Horton
2022-11-07 09:31:51 -05:00
parent e5c209e269
commit 706cd4b94b
5 changed files with 49 additions and 9 deletions

View File

@@ -66,6 +66,9 @@ class TaskTranscribe extends Task {
this.ep2 = ep2;
if ('default' === this.vendor || !this.vendor) this.vendor = cs.speechRecognizerVendor;
if ('default' === this.language || !this.language) this.language = cs.speechRecognizerLanguage;
if (!this.data.recognizer.vendor) {
this.data.recognizer.vendor = this.vendor;
}
this.sttCredentials = cs.getSpeechCredentials(this.vendor, 'stt');
try {