Skip to content

chore: add missing openai.fm model names to TTSModelSettings.voice type #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires-python = ">=3.9"
license = "MIT"
authors = [{ name = "OpenAI", email = "[email protected]" }]
dependencies = [
"openai>=1.66.5",
"openai>=1.69.0",
"pydantic>=2.10, <3",
"griffe>=1.5.6, <2",
"typing-extensions>=4.12.2, <5",
Expand Down
15 changes: 14 additions & 1 deletion src/agents/voice/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ class TTSModelSettings:
"""Settings for a TTS model."""

voice: (
Literal["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"] | None
Literal[
"alloy",
"ash",
"ballad",
"coral",
"echo",
"fable",
"onyx",
"nova",
"sage",
"shimmer",
"verse",
]
| None
) = None
"""
The voice to use for the TTS model. If not provided, the default voice for the respective model
Expand Down
73 changes: 5 additions & 68 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading