mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-02-13 01:39:26 +00:00
bugfix: typo in bugname was causing transcripts to be ignored
This commit is contained in:
@@ -301,7 +301,7 @@ class TaskGather extends Task {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ('google' === this.vendor) {
|
if ('google' === this.vendor) {
|
||||||
this.bugname = 'google_trancribe';
|
this.bugname = 'google_transcribe';
|
||||||
if (this.sttCredentials) opts.GOOGLE_APPLICATION_CREDENTIALS = JSON.stringify(this.sttCredentials.credentials);
|
if (this.sttCredentials) opts.GOOGLE_APPLICATION_CREDENTIALS = JSON.stringify(this.sttCredentials.credentials);
|
||||||
[
|
[
|
||||||
['enhancedModel', 'GOOGLE_SPEECH_USE_ENHANCED'],
|
['enhancedModel', 'GOOGLE_SPEECH_USE_ENHANCED'],
|
||||||
@@ -339,7 +339,7 @@ class TaskGather extends Task {
|
|||||||
ep.addCustomEventListener(GoogleTranscriptionEvents.VadDetected, this._onVadDetected.bind(this, cs, ep));
|
ep.addCustomEventListener(GoogleTranscriptionEvents.VadDetected, this._onVadDetected.bind(this, cs, ep));
|
||||||
}
|
}
|
||||||
else if (['aws', 'polly'].includes(this.vendor)) {
|
else if (['aws', 'polly'].includes(this.vendor)) {
|
||||||
this.bugname = 'aws_trancribe';
|
this.bugname = 'aws_transcribe';
|
||||||
if (this.vocabularyName) opts.AWS_VOCABULARY_NAME = this.vocabularyName;
|
if (this.vocabularyName) opts.AWS_VOCABULARY_NAME = this.vocabularyName;
|
||||||
if (this.vocabularyFilterName) {
|
if (this.vocabularyFilterName) {
|
||||||
opts.AWS_VOCABULARY_NAME = this.vocabularyFilterName;
|
opts.AWS_VOCABULARY_NAME = this.vocabularyFilterName;
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ class TaskTranscribe extends Task {
|
|||||||
ep.addCustomEventListener(AzureTranscriptionEvents.NoSpeechDetected, this._onNoAudio.bind(this, cs, ep, channel));
|
ep.addCustomEventListener(AzureTranscriptionEvents.NoSpeechDetected, this._onNoAudio.bind(this, cs, ep, channel));
|
||||||
|
|
||||||
if (this.vendor === 'google') {
|
if (this.vendor === 'google') {
|
||||||
this.bugname = 'google_trancribe';
|
this.bugname = 'google_transcribe';
|
||||||
if (this.sttCredentials) opts.GOOGLE_APPLICATION_CREDENTIALS = JSON.stringify(this.sttCredentials.credentials);
|
if (this.sttCredentials) opts.GOOGLE_APPLICATION_CREDENTIALS = JSON.stringify(this.sttCredentials.credentials);
|
||||||
[
|
[
|
||||||
['enhancedModel', 'GOOGLE_SPEECH_USE_ENHANCED'],
|
['enhancedModel', 'GOOGLE_SPEECH_USE_ENHANCED'],
|
||||||
@@ -199,7 +199,7 @@ class TaskTranscribe extends Task {
|
|||||||
.catch((err) => this.logger.info(err, 'TaskTranscribe:_startTranscribing with google'));
|
.catch((err) => this.logger.info(err, 'TaskTranscribe:_startTranscribing with google'));
|
||||||
}
|
}
|
||||||
else if (this.vendor === 'aws') {
|
else if (this.vendor === 'aws') {
|
||||||
this.bugname = 'aws_trancribe';
|
this.bugname = 'aws_transcribe';
|
||||||
[
|
[
|
||||||
['diarization', 'AWS_SHOW_SPEAKER_LABEL'],
|
['diarization', 'AWS_SHOW_SPEAKER_LABEL'],
|
||||||
['identifyChannels', 'AWS_ENABLE_CHANNEL_IDENTIFICATION']
|
['identifyChannels', 'AWS_ENABLE_CHANNEL_IDENTIFICATION']
|
||||||
@@ -231,7 +231,7 @@ class TaskTranscribe extends Task {
|
|||||||
.catch((err) => this.logger.info(err, 'TaskTranscribe:_startTranscribing with aws'));
|
.catch((err) => this.logger.info(err, 'TaskTranscribe:_startTranscribing with aws'));
|
||||||
}
|
}
|
||||||
else if (this.vendor === 'microsoft') {
|
else if (this.vendor === 'microsoft') {
|
||||||
this.bugname = 'azure_trancribe';
|
this.bugname = 'azure_transcribe';
|
||||||
Object.assign(opts, {
|
Object.assign(opts, {
|
||||||
'AZURE_SUBSCRIPTION_KEY': this.sttCredentials.api_key,
|
'AZURE_SUBSCRIPTION_KEY': this.sttCredentials.api_key,
|
||||||
'AZURE_REGION': this.sttCredentials.region
|
'AZURE_REGION': this.sttCredentials.region
|
||||||
|
|||||||
Reference in New Issue
Block a user