Skip to content

fix(xai): expose TTS websocket options#6095

Open
nightcityblade wants to merge 2 commits into
livekit:mainfrom
nightcityblade:fix/issue-6077
Open

fix(xai): expose TTS websocket options#6095
nightcityblade wants to merge 2 commits into
livekit:mainfrom
nightcityblade:fix/issue-6077

Conversation

@nightcityblade

Copy link
Copy Markdown
Contributor

Fixes #6077

Summary

  • expose xAI TTS websocket options for optimize_streaming_latency, speed, and text_normalization
  • forward provided values as websocket query parameters
  • allow updating these options via update_options

Testing

  • uv run ruff format livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/tts.py
  • uv run ruff check livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/tts.py
  • uv run python - <<'PY' ... xAI TTS option smoke test

@nightcityblade nightcityblade requested a review from a team as a code owner June 14, 2026 03:11
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


nightcityblade seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@nightcityblade

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I pushed f38e7d5 to forward the new xAI TTS WebSocket options (optimize_streaming_latency, speed, text_normalization) as query params, and changed the WebSocket connection helper to use the stream's captured options snapshot so changes made after stream creation don't leak into that stream's connection.

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.

xai TTS: documented API parameters (optimize_streaming_latency, speed, text_normalization) cannot be passed

2 participants