Skip to content

TTS: add missing OpenAI voices (ballad, cedar, juniper, marin, verse) - #11020

Merged
Takhoffman merged 1 commit into
openclaw:mainfrom
lailoo:fix/tts-add-missing-openai-voices-2393
Feb 13, 2026
Merged

Takhoffman merged 1 commit into
openclaw:mainfrom
lailoo:fix/tts-add-missing-openai-voices-2393

Conversation

@lailoo

@lailoo lailoo commented Feb 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #2393.

The OPENAI_TTS_VOICES allowlist was missing 5 voices that OpenAI officially supports for the gpt-4o-mini-tts model: ballad, cedar, juniper, marin, and verse.

When a user configured one of these voices (e.g., messages.tts.openai.voice: "cedar"), isValidOpenAIVoice() returned false, causing TTS to silently fall back to Edge TTS instead of using the configured OpenAI voice.

Changes

  • src/tts/tts.ts: Add ballad, cedar, juniper, marin, verse to OPENAI_TTS_VOICES array (alphabetical order preserved).
  • src/tts/tts.test.ts: Add regression test verifying all 5 new voices are accepted by isValidOpenAIVoice().
  • CHANGELOG.md: Add fix entry.

Verification

Note

The original issue (#2393) mentioned 4 voices (ballad, cedar, juniper, verse). After checking OpenAI docs, I also added marin which is officially recommended alongside cedar for best quality.

Greptile Overview

Greptile Summary

  • Extends the OpenAI TTS voice allowlist to include five additional documented voices: ballad, cedar, juniper, marin, verse.
  • Adds a regression test asserting the new voices are accepted by isValidOpenAIVoice().
  • Updates the changelog to document the fix for silent fallback from OpenAI TTS to Edge TTS when these voices are configured.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk.
  • Changes are strictly additive to a string allowlist plus a targeted regression test and a changelog entry; no behavioral changes beyond accepting additional valid voice IDs, and the new voices are covered by tests.
  • No files require special attention

@Takhoffman Takhoffman self-assigned this Feb 7, 2026
@Takhoffman
Takhoffman force-pushed the fix/tts-add-missing-openai-voices-2393 branch from c7ecfa1 to 5c6b80e Compare February 13, 2026 02:29
@Takhoffman
Takhoffman merged commit edfdd12 into openclaw:main Feb 13, 2026
25 checks passed
@Takhoffman

Copy link
Copy Markdown
Contributor

Merged via squash.

  • Merge commit: ${merge_sha}
  • Verified: pnpm install --frozen-lockfile, pnpm build, pnpm check, pnpm test
  • Changelog: CHANGELOG.md updated=true required=true opt_out=false

Thanks @lailoo!

skyhawk14 pushed a commit to skyhawk14/openclaw that referenced this pull request Feb 13, 2026
…openclaw#11020) thanks @lailoo

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check
- pnpm test

Co-authored-by: ${pr_author_login} <${coauthor_email}>
Co-authored-by: ${tak_name} <${tak_email}>
GwonHyeok pushed a commit to learners-superpumped/openclaw that referenced this pull request Feb 15, 2026
…openclaw#11020) thanks @lailoo

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check
- pnpm test

Co-authored-by: ${pr_author_login} <${coauthor_email}>
Co-authored-by: ${tak_name} <${tak_email}>
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…openclaw#11020) thanks @lailoo

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check
- pnpm test

Co-authored-by: ${pr_author_login} <${coauthor_email}>
Co-authored-by: ${tak_name} <${tak_email}>
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
…openclaw#11020) thanks @lailoo

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check
- pnpm test

Co-authored-by: ${pr_author_login} <${coauthor_email}>
Co-authored-by: ${tak_name} <${tak_email}>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
…openclaw#11020) thanks @lailoo

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check
- pnpm test

Co-authored-by: ${pr_author_login} <${coauthor_email}>
Co-authored-by: ${tak_name} <${tak_email}>
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
…openclaw#11020) thanks @lailoo

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check
- pnpm test

Co-authored-by: ${pr_author_login} <${coauthor_email}>
Co-authored-by: ${tak_name} <${tak_email}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TTS: Add newer OpenAI voices (cedar, ballad, juniper, verse) to allowed list

2 participants