https://retellai.com/?utm_source=discord&utm_medium=seo logo
Multiple Transcripts in Websocket
# ❓・bug-report
h
I am using Websockets for custom llm, but I am getting multiple transcripts for a single thing user is saying for example on saying "I am harry" I am receiving three socket messages "I am. hey.". "I am hary.", "I am harry." Can we make it send only single or last transcript only.
n
cc: @Zexia - Retell AI is this the expected behavior in voice as a channel.. since I have noticed this too.
z
yeah the transcript is correcting itself overtime, and we are sending the latest update to you all the time, so you do see the corrections
n
So let's say its a long sentence, it might end up sent in pieces like this and it won't be ideal to just pass the last message to the LLM is it?
z
no every time we send something it's going to be the full transcript. So you would have the full sentence
n
I see. Thanks ✌️
Hey @harsh_shrimal I think the way to handle these multiple transcripts is to always let the latest one generate the response and drop the previous ones. And I think this kind of mechanism is already there the github repo to handle potentially duplicate transcripts - based on check the latest value of response_id and not sending response if it is stale