mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 09:08:02 +00:00
fix
This commit is contained in:
@@ -341,12 +341,12 @@ class TaskGather extends Task {
|
||||
|
||||
if (this.input.includes('speech') && this.listenDuringPrompt) {
|
||||
try {
|
||||
return await this._startTranscribeForSpeech(cs, ep, this.vendor, this.language, this.sttCredentials);
|
||||
await this._startTranscribeForSpeech(cs, ep, this.vendor, this.language, this.sttCredentials);
|
||||
} catch (error) {
|
||||
this.logger.error({error}, 'error in initSpeech');
|
||||
if (this.fallbackSttCredentials) {
|
||||
try {
|
||||
return await this._startTranscribeForSpeech(cs, ep, this.fallbackVendor,
|
||||
await this._startTranscribeForSpeech(cs, ep, this.fallbackVendor,
|
||||
this.fallbackLanguage, this.fallbackSttCredentials);
|
||||
} catch (err) {
|
||||
this.logger.error({err}, `error in initSpeech for fallback STT provider ${this.fallbackVendor}`);
|
||||
|
||||
Reference in New Issue
Block a user