python method "on_transcription_message" doesn't work well on the first message.
Hi, I am developing my voice AI service using Daily.
I use "on_transcription_message()" in python sdk,
It doesn't catch the first message.
For example, when the real conversation is below,
" A: Hi. are you traveling?"
B: Hello?
A: Yes. So this bus ride to Carlson Road takes a while, doesn't it? "
The transcript printed on my console is below.
" B: Hello?
A: Hi. Are you traveling? Yes. So this bus ride to Carlson Road takes a while, doesn't it?"
Why this is happening?
Answers
-
The first thing I'd try is sanity-checking the daily-python transcripts with what daily-js gives you in the browser. The quickest way to do that is to use my test page (the markdown editor keeps eating my stupid link):
https:// daily-playground-cb.glitch.me/templates/prebuilt.html?room=YOURROOM&domain=YOURDOMAIN
You can see the source for that here: https://glitch.com/edit/#!/daily-playground-cb?path=templates%2Fprebuilt.html%3A1%3A0
You can open your browser console, start your python script, and see what transcriptions show up as app messages in the console. I suspect you'll see the same transcriptions both places, but it's a good first step.
I've seen occasional weirdness with Deepgram transcriptions right when an audio track starts. I suspect it could have to do with microphone auto-gain. I'd be curious to know if the problem persists if you start talking for several seconds before starting transcription.
0 -
Thanks for your reply.
The same happens with the javascript.
The problem also persists if I start talking for several seconds before starting transcription.
Is it a deepgram's bug?
1 -
Hi @JW_. I'm wondering if this could be improved by updating the
endpointing
value to a shorter value or by enablinginterim_results
.0