mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
fix
This commit is contained in:
@@ -181,7 +181,7 @@ class CallSession extends Emitter {
|
||||
}
|
||||
|
||||
get fallbackSpeechSynthesisVendor() {
|
||||
return this.application.fallback_speech_synthesis_vendor;
|
||||
return this.application.use_for_fallback_speech ? this.application.fallback_speech_synthesis_vendor : null;
|
||||
}
|
||||
set fallbackSpeechSynthesisVendor(vendor) {
|
||||
this.application.fallback_speech_synthesis_vendor = vendor;
|
||||
|
||||
@@ -183,7 +183,9 @@ class TaskGather extends Task {
|
||||
this.logger.info(`Gather:exec - task was quickly killed so do not transcribe for vendor: ${vendor}`);
|
||||
return;
|
||||
}
|
||||
this._startTranscribing(ep, vendor, language);
|
||||
this.execVendor = vendor;
|
||||
this.execLanguage = language;
|
||||
this._startTranscribing(ep);
|
||||
return updateSpeechCredentialLastUsed(credentials.speech_credential_sid);
|
||||
}
|
||||
|
||||
@@ -521,16 +523,16 @@ class TaskGather extends Task {
|
||||
.catch((err) => this.logger.info(err, 'Error setting channel variables'));
|
||||
}
|
||||
|
||||
_startTranscribing(ep, vendor = this.vendor, language = this.language) {
|
||||
_startTranscribing(ep) {
|
||||
this.logger.debug({
|
||||
vendor,
|
||||
locale: language,
|
||||
vendor: this.execVendor,
|
||||
locale: this.execLanguage,
|
||||
interim: this.interim,
|
||||
bugname: this.bugname
|
||||
}, 'Gather:_startTranscribing');
|
||||
ep.startTranscription({
|
||||
vendor,
|
||||
locale: language,
|
||||
vendor: this.execVendor,
|
||||
locale: this.execLanguage,
|
||||
interim: this.interim,
|
||||
bugname: this.bugname,
|
||||
}).catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user