Skip to content

Fixed SimliVideoService pushing near-silent audio constantly preventing BotStoppedSpeaking #4076

Open
phamtrung0633 wants to merge 3 commits into
pipecat-ai:mainfrom
Aelios-AI:phamtrung0633/simli-service-fix
Open

Fixed SimliVideoService pushing near-silent audio constantly preventing BotStoppedSpeaking #4076
phamtrung0633 wants to merge 3 commits into
pipecat-ai:mainfrom
Aelios-AI:phamtrung0633/simli-service-fix

Conversation

@phamtrung0633
Copy link
Copy Markdown
Contributor

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

Fixed SimliVideoService forwarding near-silent audio frames (quantization noise) as TTSAudioRawFrame. Added RMS threshold check to skip frames below 1.0, which is well above the observed noise floor (~0.41) but far below real speech. Without this fix - BotStoppedSpeaking will never trigger.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 18, 2026

Codecov Report

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

Files with missing lines Patch % Lines
src/pipecat/services/simli/video.py 0.00% 2 Missing ⚠️
Files with missing lines Coverage Δ
src/pipecat/services/simli/video.py 11.03% <0.00%> (-0.08%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@markbackman
Copy link
Copy Markdown
Contributor

If I run example 27 using Whisker to inspect frames, I see BotStartedSpeakingFrame and BotStoppedSpeakingFrame for each bot turn. Can you share a repro case where this isn't working?

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.

2 participants