mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-29 14:54:35 +00:00
ignore transcriptions from previous turns of conversation (#734)
This commit is contained in:
1 parent
59cf02bd04
commit
3cd7a619ad
1 file changed
+1
@@ -747,6 +747,7 @@ class TaskGather extends SttTask {
|
||||
const finished = fsEvent.getHeader('transcription-session-finished');
|
||||
this.logger.debug({evt, bugname, finished, vendor: this.vendor}, 'Gather:_onTranscription raw transcript');
|
||||
if (bugname && this.bugname !== bugname) return;
|
||||
if (finished === 'true') return;
|
||||
|
||||
if (this.vendor === 'ibm' && evt?.state === 'listening') return;
|
||||
if (this.vendor === 'deepgram' && evt.type === 'UtteranceEnd') {
|
||||
|
||||
Reference in new issue
Block a user