[Together] Default text-to-speech voice#2184
Merged
Merged
Conversation
Together's /v1/audio/speech requires a `voice` field, but the SDK didn't set one — so any TTS call that didn't pass `parameters.voice` failed with HTTP 400 "voice is required". This also caused the periodic HF mapping validator to mark hexgrad/Kokoro-82M as `status: "error"`. Default to `af_alloy` (a valid Kokoro voice) only when the target model is Kokoro — the only TTS model currently registered for Together. User-supplied parameters always override. Other model families (Orpheus, Cartesia, …) get no default and continue to surface Together's clear "voice is required" error if the caller omits one.
text-to-speech voice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Together's
/v1/audio/speechrequires avoicefield, but the SDK didn't set one — so any TTS call that didn't passparameters.voicefailed with HTTP 400"voice is required". This also caused the periodic HF mapping validator to fliphexgrad/Kokoro-82Mtostatus: "error".Defaults
voicetoaf_alloy(a valid Kokoro voice) only when the target model is Kokoro — the only TTS model currently registered for Together. User-supplied parameters always override. Other model families (Orpheus, Cartesia, …) get no default and continue to surface Together's clear"voice is required"error if the caller omits one.Behavior matrix
voicevoice: "af_alloy"✓parameters: { voice: undefined }voice: "af_alloy"✓parameters: { voice: "af_bella" }af_bella✓af_bella✓ (user override)voiceparameters: { voice: "tara" }tara✓tara✓Test plan
pnpm --filter @huggingface/inference run check(tsc) — cleanpnpm --filter @huggingface/inference run lint:check— cleanpnpm --filter @huggingface/inference run format— cleanapi.together.xyzwithhexgrad/Kokoro-82M:parameters→ 108.9 KB WAV (defaultaf_alloy)parameters: {}→ 108.5 KB WAV (defaultaf_alloy)parameters: { voice: undefined }→ 108.6 KB WAV (defaultaf_alloy)parameters: { voice: "af_bella" }→ 92.9 KB WAV (user override)voice→body.voiceabsent (no wrong default)voice: "tara"→body.voice: "tara"(user value passes through)mainfor direct comparisonNote
Cursor Bugbot is generating a summary for commit 61f1d47. Configure here.