Skip to content

Add auto_mode support for inworld plugin#3593

Merged
markbackman merged 5 commits intopipecat-ai:mainfrom
ianbbqzy:ian/inworld-auto-mode
Feb 5, 2026
Merged

Add auto_mode support for inworld plugin#3593
markbackman merged 5 commits intopipecat-ai:mainfrom
ianbbqzy:ian/inworld-auto-mode

Conversation

@ianbbqzy
Copy link
Copy Markdown
Contributor

Inworld auto_mode to improve first token latency.

@ianbbqzy ianbbqzy force-pushed the ian/inworld-auto-mode branch from f8a1593 to 00f555e Compare January 29, 2026 20:01
@ianbbqzy ianbbqzy changed the title Add auto_mode support for inworld plugin [Draft] Add auto_mode support for inworld plugin Jan 29, 2026
@markbackman
Copy link
Copy Markdown
Contributor

markbackman commented Jan 29, 2026

Tagging @cshape for review.

@ianbbqzy can you link to the docs for this? I don't see this feature listed.

@markbackman markbackman self-requested a review January 29, 2026 23:13
@cshape
Copy link
Copy Markdown
Contributor

cshape commented Jan 30, 2026

Tagging @cshape for review.

@ianbbqzy can you link to the docs for this? I don't see this feature listed.

It's a new feature which will be going out next week. @ianbbqzy and I will link the docs, review/test and ping you once we're ready then. Thanks!

@markbackman
Copy link
Copy Markdown
Contributor

It's a new feature which will be going out next week. @ianbbqzy and I will link the docs, review/test and ping you once we're ready then. Thanks!

Sounds good!

@cshape
Copy link
Copy Markdown
Contributor

cshape commented Feb 2, 2026

Hi @markbackman -

Chatted with @ianbbqzy and this feature (basically a smart auto-flushing mechanism to get optimal latency and prosody from our TTS with websockets) is good to merge now from our perspective.

It's currently slated to be rolled out on our side later this week, but will be safely ignored if the Pipecat SDK includes it before then. Our preference is to merge it into the Pipecat SDK ASAP so users can benefit as soon as our release goes out.

Thanks!

Copy link
Copy Markdown
Contributor

@markbackman markbackman left a comment

Choose a reason for hiding this comment

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

Thanks for confirming, @cshape!

Can you please add a changelog to this PR and then it'll be ready to go:
https://github.com/pipecat-ai/pipecat/blob/main/CONTRIBUTING.md#changelog-entries

@markbackman markbackman changed the title [Draft] Add auto_mode support for inworld plugin Add auto_mode support for inworld plugin Feb 2, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 2, 2026

Codecov Report

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

Files with missing lines Patch % Lines
src/pipecat/services/inworld/tts.py 0.00% 23 Missing ⚠️
Files with missing lines Coverage Δ
src/pipecat/services/inworld/tts.py 0.00% <0.00%> (ø)

... and 21 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ianbbqzy
Copy link
Copy Markdown
Contributor Author

ianbbqzy commented Feb 3, 2026

Can you please add a changelog to this PR and then it'll be ready to go:
@markbackman Done! thanks!

@ianbbqzy ianbbqzy requested a review from markbackman February 3, 2026 22:08
@ianbbqzy
Copy link
Copy Markdown
Contributor Author

ianbbqzy commented Feb 3, 2026

@markbackman sorry, I realized that this auto_mode could exacerbate the timestamps resetting issue. I will work on a fix and report back

@ianbbqzy ianbbqzy force-pushed the ian/inworld-auto-mode branch 2 times, most recently from c248b00 to e086a02 Compare February 4, 2026 06:15
@ianbbqzy
Copy link
Copy Markdown
Contributor Author

ianbbqzy commented Feb 4, 2026

Implemented timestamp cumulation using flushCompleted response message as the indication that timestamps will reset to 0.

Comment thread src/pipecat/services/inworld/tts.py
@ianbbqzy ianbbqzy force-pushed the ian/inworld-auto-mode branch from e086a02 to 02dbc95 Compare February 5, 2026 19:38
@ianbbqzy ianbbqzy force-pushed the ian/inworld-auto-mode branch from 02dbc95 to 22398e1 Compare February 5, 2026 19:39
Comment thread changelog/3593.added.md
@markbackman
Copy link
Copy Markdown
Contributor

Thanks for patiently educating me on this. This does sound like a nice improvement. In running the example, I see really solid TTFB performance now. Kudos!

Before this is ready, just two small things:

  1. Lint the code (either uv run scripts/fix-ruff.sh or install pre-commit hook: uv run pre-commit install)
  2. Update the changelog per my comment.

@ianbbqzy
Copy link
Copy Markdown
Contributor Author

ianbbqzy commented Feb 5, 2026

Thanks for patiently educating me on this. This does sound like a nice improvement. In running the example, I see really solid TTFB performance now. Kudos!

No problem at all and thanks for your team's and your personal insights into Voice AI orchestration in general. There might still be some rough edges with the Inworld API, but we will keep improving it to truly show the potentials of our model.

solid TTFB performance now

Thanks! but we also know it's not there yet, we have an even bigger latency improvement regarding timestamps coming soon next week, stay tuned!

@markbackman markbackman merged commit b8ac2ba into pipecat-ai:main Feb 5, 2026
6 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.

3 participants