ENG-87042: document language on TTS WebSocket and simplify locale note#266
Merged
rishabh-bhargava merged 1 commit intomainfrom Apr 30, 2026
Merged
Conversation
ENG-87042 - Adds `language` as a query parameter on `/audio/speech/websocket` alongside `model`, `voice`, and `max_partial_length`, with the same locale-aware description used on `/audio/speech`. - Drops the redundant ", not `zh-HK`" negative example from the `AudioSpeechRequest.language` description.
✱ Stainless preview buildsThis PR will update the go openapi python terraform typescript
|
sbeurnier
approved these changes
Apr 30, 2026
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
languageas a query parameter on/audio/speech/websocketso it surfaces on the API reference page alongsidemodel,voice, andmax_partial_length. Description matches the HTTP endpoint and notes that the value can also be updated viatts_session.updated.languageamong the query parameters.AudioSpeechRequest.languagedescription — the lowercase requirement is already stated explicitly.Context
Follow-up to #265. The TTS API reference auto-generated from
openapi.yamlonly documentedlanguageon the HTTP endpoint, so WebSocket users had no signal on the reference page. Linear: ENG-87042.Companion docs PR (text-to-speech.mdx): mintlify-docs#764 — both should land before merging the docs sync.
Test plan
languageparameter with the locale-aware description.