Skip to content

ENG-87042: document language on TTS WebSocket and simplify locale note#266

Merged
rishabh-bhargava merged 1 commit intomainfrom
feature/eng-87042-tts-ws-language-param
Apr 30, 2026
Merged

ENG-87042: document language on TTS WebSocket and simplify locale note#266
rishabh-bhargava merged 1 commit intomainfrom
feature/eng-87042-tts-ws-language-param

Conversation

@rishabh-bhargava
Copy link
Copy Markdown
Contributor

Summary

  • Adds language as a query parameter on /audio/speech/websocket so it surfaces on the API reference page alongside model, voice, and max_partial_length. Description matches the HTTP endpoint and notes that the value can also be updated via tts_session.updated.
  • Updates the description in the WS endpoint prose to list language among the query parameters.
  • Drops the redundant ", not `zh-HK`" negative example from the AudioSpeechRequest.language description — the lowercase requirement is already stated explicitly.

Context

Follow-up to #265. The TTS API reference auto-generated from openapi.yaml only documented language on 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

  • Spec lints cleanly and renders in the downstream docs sync.
  • WS reference page shows language parameter with the locale-aware description.
  • HTTP reference page no longer shows ", not `zh-HK`".

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.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

✱ Stainless preview builds

This PR will update the togetherai SDKs with the following commit messages.

go

feat: ENG-87042: document language on TTS WebSocket and simplify locale note

openapi

feat: ENG-87042: document language on TTS WebSocket and simplify locale note

python

feat: ENG-87042: document language on TTS WebSocket and simplify locale note

terraform

feat: ENG-87042: document language on TTS WebSocket and simplify locale note

typescript

feat: ENG-87042: document language on TTS WebSocket and simplify locale note
togetherai-openapi studio · code

Your SDK build had at least one "note" diagnostic.
generate ✅

⚠️ togetherai-go studio · code

Your SDK build had a failure in the test CI job, which is a regression from the base state.
generate ✅build ⏭️lint ✅test ❗

go get github.com/stainless-sdks/togetherai-go@454dc61de881e2c95c859f76bbf8dd1b2015f213
⚠️ togetherai-python studio · code

Your SDK build had at least one "warning" diagnostic.
generate ⚠️build ✅lint ✅test ⏭️

pip install https://pkg.stainless.com/s/togetherai-python/14b429f0e08c8ad9eba4ffb51ba6d8d95d35973d/together-2.11.0-py3-none-any.whl
⚠️ togetherai-typescript studio · conflict

Your SDK build had at least one warning diagnostic.

togetherai-terraform studio · code

Your SDK build had at least one "note" diagnostic.
generate ✅lint ✅test ✅


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-04-30 19:23:33 UTC

@rishabh-bhargava rishabh-bhargava merged commit 7646026 into main Apr 30, 2026
5 of 6 checks passed
@rishabh-bhargava rishabh-bhargava deleted the feature/eng-87042-tts-ws-language-param branch April 30, 2026 19:20
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.

2 participants