Skip to content

feat(voice): reuse STT connection across agent handoffs#5093

Open
longcw wants to merge 12 commits intomainfrom
longc/reuse-stt-on-agent-handoff
Open

feat(voice): reuse STT connection across agent handoffs#5093
longcw wants to merge 12 commits intomainfrom
longc/reuse-stt-on-agent-handoff

Conversation

@longcw
Copy link
Contributor

@longcw longcw commented Mar 12, 2026

close #4123

@chenghao-mou chenghao-mou requested a review from a team March 12, 2026 04:26
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

await self._activity._detach_stt_pipeline_if_reusable(self._next_activity)
if self._activity is not None
else None
)
Copy link
Member

Choose a reason for hiding this comment

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

Q: if this is detached before the new one is ready (until start/resume in the new activity), the audio frames are silently dropped during the window, right?

I guess this is pre-existing before the PR. At least it is better now when we don't have to restart the STT connection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, the audio frames are dropped during the handoff.

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.

Persistent STT stream

3 participants