Skip to content

AssemblyAI: Add on_end_of_turn event handler#4128

Merged
markbackman merged 3 commits intomainfrom
mb/end-of-turn-assembly
Mar 27, 2026
Merged

AssemblyAI: Add on_end_of_turn event handler#4128
markbackman merged 3 commits intomainfrom
mb/end-of-turn-assembly

Conversation

@markbackman
Copy link
Copy Markdown
Contributor

@markbackman markbackman commented Mar 24, 2026

Please describe the changes in your PR. If it is addressing an issue, please reference that as well.

Also correct the Deepgram Flux event handler docstrings.

Resolves #4008

Fires after the final transcript is pushed in both Pipecat and
AssemblyAI turn detection modes, giving users a reliable hook
that arrives after all transcript frames. Matches the existing
Deepgram Flux on_end_of_turn pattern.
Update documented event signatures to include transcript argument
where the code actually passes it. Remove stale on_speech_started
and on_utterance_end entries that were never registered.
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pipecat/services/assemblyai/stt.py 33.33% 2 Missing ⚠️
Files with missing lines Coverage Δ
src/pipecat/services/deepgram/flux/stt.py 29.82% <ø> (ø)
src/pipecat/services/assemblyai/stt.py 30.69% <33.33%> (+0.02%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@filipi87 filipi87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@markbackman markbackman merged commit 900fc88 into main Mar 27, 2026
6 checks passed
@markbackman markbackman deleted the mb/end-of-turn-assembly branch March 27, 2026 14:47
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.

TranscriptionFrame And UserStoppedSpeakingFrame Ordering Not Preserved

2 participants