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) {
|
if (this.input.includes('speech') && this.listenDuringPrompt) {
|
||||||
try {
|
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) {
|
} catch (error) {
|
||||||
this.logger.error({error}, 'error in initSpeech');
|
this.logger.error({error}, 'error in initSpeech');
|
||||||
if (this.fallbackSttCredentials) {
|
if (this.fallbackSttCredentials) {
|
||||||
try {
|
try {
|
||||||
return await this._startTranscribeForSpeech(cs, ep, this.fallbackVendor,
|
await this._startTranscribeForSpeech(cs, ep, this.fallbackVendor,
|
||||||
this.fallbackLanguage, this.fallbackSttCredentials);
|
this.fallbackLanguage, this.fallbackSttCredentials);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.logger.error({err}, `error in initSpeech for fallback STT provider ${this.fallbackVendor}`);
|
this.logger.error({err}, `error in initSpeech for fallback STT provider ${this.fallbackVendor}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user