Skip to content

Commit

Permalink
fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Jan 6, 2024
1 parent d6c1874 commit 464008d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tasks/transcribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class TaskTranscribe extends SttTask {
/* buffer speech for continuous asr */
this._bufferedTranscripts = [];
this.bugname_prefix = 'transcribe_';
this.bugname_counter = 0;
}

get name() { return TaskName.Transcribe; }
Expand Down Expand Up @@ -265,7 +266,8 @@ class TaskTranscribe extends SttTask {
}
}
// save dedicated bugname for each endpoint
ep.transcribe_bugname = `${bugname}_${Date.now()}`;
ep.transcribe_bugname = `${bugname}_${channel}_${this.bugname_counter}`;
this.bugname_counter++;
/* common handler for all stt engine errors */
this.addCustomEventListener(ep, JambonzTranscriptionEvents.Error, this._onJambonzError.bind(this, cs, ep));
await ep.set(opts)
Expand Down

0 comments on commit 464008d

Please sign in to comment.