Add xAI TTS speed option - #2028
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 3f557ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Change version from minor to patch for @livekit/agents.
tinalenguyen
approved these changes
Jul 14, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port livekit/agents #6394 by adding the
speedprovider option for xAI TTS inference in the JS SDK.Source diff coverage
Coverage classification
livekit-agents/livekit/agents/inference/tts.pyagents/src/inference/tts.ts. Ported the addedXaiOptions.speedfield toXaiTTSOptionsasspeed?: number, using the existingmodelOptionsforwarding path for provider-specific inference options.Testing
pnpm test agents/src/inference/tts.test.tspassed: 51 passed, 1 skipped.pnpm buildpassed.pnpm lintpassed with existing warnings.pnpm test agentsfailed inagents/src/voice/amd.test.tswith 11 AMD-related failures; these are unrelated to this type-only inference TTS option port.pnpm api:checkfailed before reaching changed API validation because@livekit/agents-plugin-beyhas noapi-extractor.json.pnpm --filter @livekit/agents api:checkfailed on an existing API Extractor limitation:The "export * as ___" syntax is not supported yetinagents/dist/index.d.ts:10:8.Notes
modelOptionsto the inference gateway.cue-clivalidation was not run because this port does not touch voice pipeline runtime behavior.Ported from livekit/agents#6394
Original PR description
No description.