Unrealistic `end_of_utterance_delay` and `transcri...
# agents
o
Unrealistic
end_of_utterance_delay
and
transcription_delay
please check the attache image. Any one facing similar issue? CC: @boundless-energy-78552 @dry-elephant-14928
f
I am also seeing this issue. We were already investigating "first message delay" and this issue has thrown off any debugging 🙂
o
@jolly-air-155 do you have any clue on it.
j
seems to be caused by the VAD false negative, when the VAD didn’t detect a speech but STT have a transcription, we don’t know when the user stops speaking so it may uses the timestamp of the previous speaking
this shouldn’t affect the agent, but we are looking for a better solution for these metrics
o
@jolly-air-155 thanks for your clarification. It will be great if this fixed in future release. Otherwise this metrics sometimes misleading. Initially we were thinking the STT was giving us late response, but it's because of VAD false negative. @jolly-air-155 it would be great if LK team add separate metric for STT component only (e.g: STT Final transcript latency, intermediate transcript latency) . This will measure only STT related latency. This will remove confusion with transcription delay latency. What do you think?
j
When you using the streaming stt, the audio is sent to api continuously, so without VAD we can’t know when user stops speaking and what is the stt latency
we may consider to skip the metrics when VAD failed or use the timestamps returned by the STT provider if possible
o
@jolly-air-155 In here they implement STT latency in streaming condition. For example they send 160 ms audio chunk to STT server and STT server give response for each 160ms audio chunk. based on the this STT server response time they calculate STT latency for, 1. Intermediate latencies 2. Final latencies 3. Latencies (combine intermediate + final latency) Like this Do you think this make sense and feasible for LK agent
j
what do you mean STT gives response for each audio chunk?
o
riva-asr-latencies.png
Like above image
j
this is not how streaming mode works, STT gives transcriptions when it detects user speech, but not based on chunks we sent
we may compute the latency if they returns a timestamp when user starts and ends speaking, this may have bias for different STT providers tho
o
Yes this could be a good options
According to this docs the streaming STT is giving response for each request. When there is
no speech
it returns empty response
f
@jolly-air-155
this shouldn’t affect the agent, but we are looking for a better solution for these metrics
Any Github issue to track progress? Also is there a way to minimize "VAD false negatives" to reduce the occurrence of this issue?
o
Hey @jolly-air-155 @dry-elephant-14928 any update on it?
f
Hi @refined-appointment-81829, do you have any info on this issue?
r
Hmm, I am not sure what to add here