Skip to content

fix(voice): include current OpenAI TTS voices - #4535

Merged
seratch merged 2 commits into
openai:mainfrom
sylvesterkaczmarek:fix/current-openai-tts-voices
Aug 20, 2026
Merged

seratch merged 2 commits into
openai:mainfrom
sylvesterkaczmarek:fix/current-openai-tts-voices

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor

Summary

Bring the public TTSVoice type in line with the built-in voices currently accepted by OpenAI speech generation.

TTSModelSettings.voice is typed as TTSVoice, but the literal currently omits ballad, verse, marin, and cedar. The underlying OpenAITTSModel already forwards voice values directly to the OpenAI speech client, whose current API supports these voices, so valid configurations are unnecessarily rejected by static type checkers.

Fixes #4534.

Fix

  • add ballad, verse, marin, and cedar to TTSVoice
  • keep the existing voices unchanged
  • add focused regression coverage for the newly supported literals

Test plan

Added a type-contract regression asserting that the current OpenAI built-in voices omitted from the previous literal are present in TTSVoice.

The branch is based directly on current main at 7e55afc9500d12937687988f1e91e900dcb4ad09 and is 0 commits behind it.

Risk

Very low. This widens the static type contract to match values already accepted by the runtime API; it does not change request construction or runtime behavior.

@seratch seratch added this to the 0.22.x milestone Aug 20, 2026
@seratch
seratch enabled auto-merge (squash) August 20, 2026 02:51
@seratch
seratch merged commit 9fd6c81 into openai:main Aug 20, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TTSVoice type is missing currently supported OpenAI voices

2 participants