Skip to content

(phonic): Use stream_ahead_of_real_time mode for Phonic WebSocket and sample rate 24000#6236

Merged
davidzhao merged 2 commits into
livekit:mainfrom
Phonic-Co:q/phonic-stream-ahead-pcm24000
Jun 26, 2026
Merged

(phonic): Use stream_ahead_of_real_time mode for Phonic WebSocket and sample rate 24000#6236
davidzhao merged 2 commits into
livekit:mainfrom
Phonic-Co:q/phonic-stream-ahead-pcm24000

Conversation

@qionghuang6

Copy link
Copy Markdown
Contributor
  • Bump phonic to 0.32.5 and enable stream_ahead_of_real_time so assistant audio is sent to Livekit agents as soon as it is generated.
  • Switch the input and output formats to pcm_24000

qionghuang6 and others added 2 commits June 25, 2026 16:30
Enable stream_ahead_of_real_time so assistant audio is sent to the client
as soon as it is generated, and switch the input and output formats to
pcm_24000 (the STS buffer's native rate) to avoid resampling. Bump the
phonic dependency to 0.32.5 for the stream_ahead_of_real_time config field.

Co-authored-by: Cursor <cursoragent@cursor.com>
Stamp each text chunk with the start/end time of the audio it is delivered
alongside, tracked via a running audio cursor on the generation. This lets
the transcript synchronizer align words by exact playback span instead of
estimating from the speaking-rate detector.

Co-authored-by: Cursor <cursoragent@cursor.com>
@qionghuang6 qionghuang6 marked this pull request as ready for review June 26, 2026 00:35
@qionghuang6 qionghuang6 requested a review from a team as a code owner June 26, 2026 00:35

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@davidzhao davidzhao merged commit 0ce2edf into livekit:main Jun 26, 2026
16 checks passed
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