Skip to content

feat(voice): allow tts_text_transforms to be configured per-agent (#7015) - #7250

Open
rrfunde wants to merge 2 commits into
livekit:mainfrom
rrfunde:fix/agent-tts-text-transforms
Open

feat(voice): allow tts_text_transforms to be configured per-agent (#7015)#7250
rrfunde wants to merge 2 commits into
livekit:mainfrom
rrfunde:fix/agent-tts-text-transforms

Conversation

@rrfunde

@rrfunde rrfunde commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Fixes #7015

Summary

Allow configuring tts_text_transforms directly on Agent instances as well as dynamically updating them via Agent.update_options(tts_text_transforms=...).

Changes

  • Agent.__init__: Added tts_text_transforms: NotGivenOr[Sequence[TextTransforms] | None] = NOT_GIVEN parameter and property getter.
  • Agent.update_options: Added tts_text_transforms parameter to support switching transforms mid-session.
  • AgentActivity: Added property resolving agent's tts_text_transforms over session.options.tts_text_transforms when provided.
  • Added unit tests in tests/test_agent_update_options.py verifying initialization, updates, and session fallback/override.

…vekit#7015)

Allow setting and updating tts_text_transforms on Agent instances, overriding AgentSession options when provided.
@rrfunde
rrfunde requested a review from a team as a code owner September 12, 2026 11:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
πŸ“ Code Review βœ… Completed 2026-09-12T11:26:33.375672Z cba5ca2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with πŸ‘€ while any review is running, comments if it has suggestions, and reacts with πŸ‘ once all reviews finish with no findings.

@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.

Devin Review

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.

Allow tts_text_transforms to be set per-Agent, not just on AgentSession

1 participant