From d12ce6bd6bd77d69e2421e6bbaff77420a2f45c3 Mon Sep 17 00:00:00 2001 From: "chenglun.hu" Date: Wed, 28 Jan 2026 20:43:39 +0800 Subject: [PATCH] fix(tts): add missing OpenAI TTS voices (ballad, cedar, marin, verse) Fixes #2393 Add the following OpenAI TTS voices to the OPENAI_TTS_VOICES allowlist: - ballad - cedar - marin - verse These voices are listed in OpenAI's /audio/speech API reference but were missing from the main TTS module. The extensions/voice-call module already had these voices; this PR syncs src/tts/tts.ts to match. Note: juniper mentioned in the issue is a ChatGPT app-only voice and is not available via the TTS API, so it is intentionally not included. Co-Authored-By: Claude Opus 4.5 --- src/tts/tts.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tts/tts.ts b/src/tts/tts.ts index af3d7fda5..723968474 100644 --- a/src/tts/tts.ts +++ b/src/tts/tts.ts @@ -765,13 +765,17 @@ const isCustomOpenAIEndpoint = OPENAI_TTS_BASE_URL !== "https://api.openai.com/v export const OPENAI_TTS_VOICES = [ "alloy", "ash", + "ballad", + "cedar", "coral", "echo", "fable", - "onyx", + "marin", "nova", + "onyx", "sage", "shimmer", + "verse", ] as const; type OpenAiTtsVoice = (typeof OPENAI_TTS_VOICES)[number];