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

This commit is contained in:
Sylvester Kaczmarek
2026-08-20 03:55:56 +01:00
committed by GitHub
parent bfb981d63e
commit 9fd6c81c59
2 changed files with 22 additions and 1 deletions
+15 -1
View File
@@ -14,7 +14,21 @@ DEFAULT_TTS_INSTRUCTIONS = (
)
DEFAULT_TTS_BUFFER_SIZE = 120
TTSVoice = Literal["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"]
TTSVoice = Literal[
"alloy",
"ash",
"ballad",
"coral",
"echo",
"fable",
"onyx",
"nova",
"sage",
"shimmer",
"verse",
"marin",
"cedar",
]
"""Exportable type for the TTSModelSettings voice enum"""
+7
View File
@@ -0,0 +1,7 @@
from typing import get_args
from agents.voice.model import TTSVoice
def test_tts_voice_type_includes_current_openai_builtin_voices() -> None:
assert {"ballad", "verse", "marin", "cedar"} <= set(get_args(TTSVoice))