mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fix lint errors
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -171,7 +171,10 @@ class TaskGather extends Task {
|
|||||||
vendor: this.vendor
|
vendor: this.vendor
|
||||||
}).catch((err) => this.logger.info({err}, 'Error generating alert for no stt'));
|
}).catch((err) => this.logger.info({err}, 'Error generating alert for no stt'));
|
||||||
// Notify application that STT vender is wrong.
|
// Notify application that STT vender is wrong.
|
||||||
this.notifyError({msg: 'ASR error', details: `No speech-to-text service credentials for ${this.vendor} have been configured`});
|
this.notifyError({
|
||||||
|
msg: 'ASR error',
|
||||||
|
details: `No speech-to-text service credentials for ${this.vendor} have been configured`
|
||||||
|
});
|
||||||
this.notifyTaskDone();
|
this.notifyTaskDone();
|
||||||
throw new Error(`No speech-to-text service credentials for ${this.vendor} have been configured`);
|
throw new Error(`No speech-to-text service credentials for ${this.vendor} have been configured`);
|
||||||
}
|
}
|
||||||
@@ -395,7 +398,7 @@ class TaskGather extends Task {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
this.notifyError({ msg: 'ASR error',details:`Invalid vendor ${this.vendor}`});
|
this.notifyError({ msg: 'ASR error', details:`Invalid vendor ${this.vendor}`});
|
||||||
this.notifyTaskDone();
|
this.notifyTaskDone();
|
||||||
throw new Error(`Invalid vendor ${this.vendor}`);
|
throw new Error(`Invalid vendor ${this.vendor}`);
|
||||||
}
|
}
|
||||||
@@ -623,7 +626,7 @@ class TaskGather extends Task {
|
|||||||
message: `Failed connecting to Deepgram speech recognizer: ${reason}`,
|
message: `Failed connecting to Deepgram speech recognizer: ${reason}`,
|
||||||
vendor: 'deepgram',
|
vendor: 'deepgram',
|
||||||
}).catch((err) => this.logger.info({err}, 'Error generating alert for deepgram connection failure'));
|
}).catch((err) => this.logger.info({err}, 'Error generating alert for deepgram connection failure'));
|
||||||
this.notifyError({msg: 'ASR error',details:`Failed connecting to speech vendor deepgram: ${reason}`});
|
this.notifyError({msg: 'ASR error', details:`Failed connecting to speech vendor deepgram: ${reason}`});
|
||||||
this.notifyTaskDone();
|
this.notifyTaskDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -641,7 +644,7 @@ class TaskGather extends Task {
|
|||||||
message: `Failed connecting to IBM watson speech recognizer: ${reason}`,
|
message: `Failed connecting to IBM watson speech recognizer: ${reason}`,
|
||||||
vendor: 'ibm',
|
vendor: 'ibm',
|
||||||
}).catch((err) => this.logger.info({err}, 'Error generating alert for IBM connection failure'));
|
}).catch((err) => this.logger.info({err}, 'Error generating alert for IBM connection failure'));
|
||||||
this.notifyError({msg: 'ASR error',details:`Failed connecting to speech vendor IBM: ${reason}`});
|
this.notifyError({msg: 'ASR error', details:`Failed connecting to speech vendor IBM: ${reason}`});
|
||||||
this.notifyTaskDone();
|
this.notifyTaskDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user