Skip to content

Speechmatics STT + multi-speaker conversations #2036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

sam-s10s
Copy link

@sam-s10s sam-s10s commented Jun 20, 2025

This is an early development of the Speechmatics STT plugin for pipecat. It not only takes advantage of our fast STT engine, but also introduces the speaker diarization - this means the agent knows who is speaking in multi-speaker conversations.

User: <S1>Hello, it's John here!</S1> <S2>And Emma!</S2>
Assistant: Hello both of you!
User: <S2>Who is speaking now?</S2>
Assistant: That's Emma!

By providing instructions in the system context, it is possible for larger LLMs to be able to deduce from the speaker tags who is who. With Speechmatics, you can also pass in known speaker voice-prints and this will mean the STT and LLM will know who is speaking by name and not just an index.

This is a work in progress, as there are challenges in how the speaker information is used within other LiveKit pipeline modules, such as end of turn detection. At the moment the Speechmatics STT will do speech-based endpointing and this is used for end of utterance.

The README in the module directory is for reference as we develop!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant