From ea6e458e83051f547fa1cae3ce83b7b9d31f8008 Mon Sep 17 00:00:00 2001 From: Sir Qasim Date: Fri, 21 Mar 2025 11:01:19 +0500 Subject: [PATCH 1/2] add voice option "ballad" in src/agents/voice/model.py add voice option "ballad" in src/agents/voice/model.py reference link https://platform.openai.com/docs/guides/text-to-speech --- src/agents/voice/model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/agents/voice/model.py b/src/agents/voice/model.py index 220d4b48..b0d3f17c 100644 --- a/src/agents/voice/model.py +++ b/src/agents/voice/model.py @@ -14,13 +14,12 @@ ) DEFAULT_TTS_BUFFER_SIZE = 120 - @dataclass 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"] | None ) = None """ The voice to use for the TTS model. If not provided, the default voice for the respective model From 47a46f8a6bfb172021c4ec662d1d08bb40aeb48a Mon Sep 17 00:00:00 2001 From: Sir Qasim Date: Fri, 21 Mar 2025 11:18:52 +0500 Subject: [PATCH 2/2] add voice options "verse" and "ballad" in src/agents/voice/model.py add voice options "verse" and "ballad" in src/agents/voice/model.py --- src/agents/voice/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/voice/model.py b/src/agents/voice/model.py index b0d3f17c..8a9defe4 100644 --- a/src/agents/voice/model.py +++ b/src/agents/voice/model.py @@ -19,7 +19,7 @@ class TTSModelSettings: """Settings for a TTS model.""" voice: ( - Literal["alloy", "ash", "ballad", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"] | None + Literal["alloy", "ash", "ballad", "verse", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"] | None ) = None """ The voice to use for the TTS model. If not provided, the default voice for the respective model