Closed Krupskis closed 1 month ago
Also tried utterance_end_ms=1000
, same issue
You need to create a function for the event to call:
async def on_utterance_end(self, utterance_end, **kwargs):
print(f"Deepgram Utterance End")
then you need to actually hook the function up to the event:
dg_connection.on(LiveTranscriptionEvents.UtteranceEnd, on_utterance_end)
Both are missing in your code sample above.
What is the current behavior?
The UtteranceEnd event does not come 1000ms after the last spoken word.
Steps to reproduce
play music in the background and speak,
print(resut.type)
will only print Results, but not theUtteranceEnd
event after I finish speaking, I have to stop music forspeech_final
to be triggered.Expected behavior
I would expect UtteranceEnd to trigger a second after my last word so I can finalize the sentence.
Please tell us about your environment
Local Flask server on a mac m2