Skip to content

Feature/Pipecat version update & imporvement in latency metrics#119

Open
sherbin-think41 wants to merge 14 commits into
mainfrom
Hot-fix/code-cleanup-and-fixes
Open

Feature/Pipecat version update & imporvement in latency metrics#119
sherbin-think41 wants to merge 14 commits into
mainfrom
Hot-fix/code-cleanup-and-fixes

Conversation

@sherbin-think41

@sherbin-think41 sherbin-think41 commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator
  • Removed the duplicate FunctionObserver(rtvi=rtvi) to prevent each pipeline frame from being processed twice unnecessarily.
  • Updated Pipecat version from 0.0.71 to 0.0.98
  • Removed all the pipecat deprecated libraries
  • Allow Voice Interuption
  • optimize streaming, SIP latency, VAD responsiveness, and conversation flow
  • Added fast-path LLM streaming in handler.py to stream chunks immediately when no guardrails are configured, enabling TTS to start on first token
  • Replaced guardrail polling loop with asyncio.Queue for concurrent streaming + guardrail execution
  • Reduced SIP handshake timeouts from 10s → 3s to eliminate unnecessary call start delays
  • Removed duplicate SIP context injection (add_messages), preventing redundant call_sid and session_id tokens
  • Improved VAD responsiveness by setting "stop_secs": 0.3 and fixed "silerio" typo → "silero"
  • ruff format and ruff fixes

…event each pipeline frame from being processed twice unnecessarily
…sation flow

Added fast-path LLM streaming in handler.py to stream chunks immediately when no guardrails are configured, enabling TTS to start on first token

Replaced guardrail polling loop with asyncio.Queue for concurrent streaming + guardrail execution

Reduced SIP handshake timeouts from 10s → 3s to eliminate unnecessary call start delays

Removed duplicate SIP context injection (add_messages), preventing redundant call_sid and session_id tokens

Improved VAD responsiveness by setting stop_secs: 0.3 and fixed silerio typo → silero

Explicitly set model: gpt-4o-mini in basic_agent.json

ruff format and ruff fixes
@sherbin-think41 sherbin-think41 changed the title Hot-Fix/Code-Cleanup Hot-Fix/Code-Cleanup SIP Tuning Feb 24, 2026
@sherbin-think41

Copy link
Copy Markdown
Collaborator Author
image (1)

Before Optimization

@sherbin-think41

Copy link
Copy Markdown
Collaborator Author
Screenshot from 2026-02-25 18-52-04

Optimized latency metrics

@sherbin-think41 sherbin-think41 changed the title Hot-Fix/Code-Cleanup SIP Tuning Feature/Pipecat version update & imporvement in latency metrics Feb 26, 2026
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