typo for media bug name in azure and punctuation fix

This commit is contained in:
Dave Horton
2022-09-13 16:19:49 +02:00
parent 468a9e6d6b
commit 876824abde

View File

@@ -313,6 +313,7 @@ class TaskGather extends Task {
['diarization', 'GOOGLE_SPEECH_PROFANITY_FILTER'] ['diarization', 'GOOGLE_SPEECH_PROFANITY_FILTER']
].forEach((arr) => { ].forEach((arr) => {
if (this[arr[0]]) opts[arr[1]] = true; if (this[arr[0]]) opts[arr[1]] = true;
else if (this[arr[0]] === false) opts[arr[1]] = false;
}); });
if (this.hints.length > 0) { if (this.hints.length > 0) {
opts.GOOGLE_SPEECH_HINTS = this.hints.join(','); opts.GOOGLE_SPEECH_HINTS = this.hints.join(',');
@@ -355,7 +356,7 @@ class TaskGather extends Task {
ep.addCustomEventListener(AwsTranscriptionEvents.VadDetected, this._onVadDetected.bind(this, cs, ep)); ep.addCustomEventListener(AwsTranscriptionEvents.VadDetected, this._onVadDetected.bind(this, cs, ep));
} }
else if ('microsoft' === this.vendor) { else if ('microsoft' === this.vendor) {
this.bugname = 'azure_trancribe'; this.bugname = 'azure_transcribe';
if (this.sttCredentials) { if (this.sttCredentials) {
Object.assign(opts, { Object.assign(opts, {
'AZURE_SUBSCRIPTION_KEY': this.sttCredentials.api_key, 'AZURE_SUBSCRIPTION_KEY': this.sttCredentials.api_key,