Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Live STT responds on Deepgram is_final instead of speech_final (AI interrupts mid-sentence) #25

Description

@jaylfc

The WebSocket loop triggers an LLM turn whenever an interim result is marked is_final (server.py:625, :652) rather than at end-of-utterance. is_final fires per finalized segment, so the AI tends to respond to half-sentences.

Fix: use Deepgram speech_final / UtteranceEnd with endpointing to detect the end of the caller's turn before calling the LLM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-mediumMedium prioritybugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions