diff --git a/changelog/3682.added.md b/changelog/3682.added.md new file mode 100644 index 000000000..c9a5061b7 --- /dev/null +++ b/changelog/3682.added.md @@ -0,0 +1 @@ +- Added new OpenAI TTS voice options `marin` and `cedar`. diff --git a/src/pipecat/services/openai/tts.py b/src/pipecat/services/openai/tts.py index 593ff7d4c..444ae883f 100644 --- a/src/pipecat/services/openai/tts.py +++ b/src/pipecat/services/openai/tts.py @@ -28,18 +28,32 @@ from pipecat.services.tts_service import TTSService from pipecat.utils.tracing.service_decorators import traced_tts ValidVoice = Literal[ - "alloy", "ash", "ballad", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer", "verse" + "alloy", + "ash", + "ballad", + "cedar", + "coral", + "echo", + "fable", + "marin", + "nova", + "onyx", + "sage", + "shimmer", + "verse", ] VALID_VOICES: Dict[str, ValidVoice] = { "alloy": "alloy", "ash": "ash", "ballad": "ballad", + "cedar": "cedar", "coral": "coral", "echo": "echo", "fable": "fable", - "onyx": "onyx", + "marin": "marin", "nova": "nova", + "onyx": "onyx", "sage": "sage", "shimmer": "shimmer", "verse": "verse",