custom stt vendor ws connection should not be closed in asrTimeout (#973)

This commit is contained in:
Hoan Luu Huu
2024-11-18 22:17:31 +07:00
committed by GitHub
parent c1330d4651
commit c8c3738ae8

View File

@@ -846,8 +846,10 @@ class TaskGather extends SttTask {
this._startAsrTimer();
/* some STT engines will keep listening after a final response, so no need to restart */
if (!['soniox', 'aws', 'microsoft', 'deepgram', 'speechmatics']
.includes(this.vendor)) this._startTranscribing(ep);
if (!['soniox', 'aws', 'microsoft', 'deepgram', 'speechmatics'].includes(this.vendor) &&
!this.vendor.startsWith('custom')) {
this._startTranscribing(ep);
}
}
else {
/* this was removed to fix https://github.com/jambonz/jambonz-feature-server/issues/783 */