ignore google errors with error_code 0

This commit is contained in:
Dave Horton
2024-04-16 13:42:31 -04:00
parent 1a2aa91973
commit bd002ede48
2 changed files with 8 additions and 0 deletions

View File

@@ -933,6 +933,10 @@ class TaskGather extends SttTask {
this.logger.debug('TaskGather:_onTranscriptionComplete');
}
async _onJambonzError(cs, ep, evt) {
if (this.vendor === 'google' && evt.error_code === 0) {
this.logger.info({evt}, 'TaskTranscribe:_onJambonzError - ignoring google error code 0');
return;
}
this.logger.info({evt}, 'TaskGather:_onJambonzError');
if (this.isHandledByPrimaryProvider && this.fallbackVendor) {
ep.stopTranscription({