gather: restart if we get an empty transcript (looking at you, Azure)

This commit is contained in:
Dave Horton
2022-04-01 14:37:10 -04:00
parent 34bb992597
commit 9d27fd0a93

View File

@@ -387,7 +387,7 @@ class TaskGather extends Task {
if (evt.is_final) {
if (evt.alternatives[0].transcript === '') {
this.logger.info({evt}, 'TaskGather:_onTranscription - got empty transcript, listen again');
this._startTranscribing(ep);
return this._startTranscribing(ep);
}
this._resolve('speech', evt);
}