Skip to content

docs(tts): document per-provider max_text_length caps (salvage #13825)#20389

Merged
teknium1 merged 1 commit into
mainfrom
salvage/pr-13825
May 5, 2026
Merged

docs(tts): document per-provider max_text_length caps (salvage #13825)#20389
teknium1 merged 1 commit into
mainfrom
salvage/pr-13825

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

@teknium1 teknium1 commented May 5, 2026

Documents the per-provider input-character caps that Hermes uses to truncate TTS requests, plus the max_text_length override under each provider's config section.

Changes:

  • website/docs/user-guide/features/tts.md (+37)

Verified against current tools/tts_tool.py:

  • Global caps (edge=5000, openai=4096, xai=15000, minimax=10000, mistral=4000, gemini=5000, elevenlabs=10000, neutts=2000, kittentts=2000) match PROVIDER_MAX_TEXT_LENGTH.
  • ElevenLabs per-model caps match ELEVENLABS_MODEL_MAX_TEXT_LENGTH (v3=5000, multilingual/english_sts=10000, flash_v2=30000, flash_v2_5=40000).

Closes #13825 via salvage.

Original PR by @r266-tech — authorship preserved.

PR #13743 replaced the global MAX_TEXT_LENGTH=4000 with a per-provider
table and a user-override 'max_text_length:' key, but the user-guide
TTS page documented no length behaviour at all. Users hitting truncation
had no way to discover the new caps or the override.

Add an 'Input length limits' subsection after the existing Configuration
YAML block: provider default caps (Edge 5000 / OpenAI 4096 / xAI 15000 /
MiniMax 10000 / Mistral 4000 / Gemini 5000 / ElevenLabs model-aware /
NeuTTS,KittenTTS 2000), ElevenLabs model_id -> cap table (5k-40k), an
override example, and the validation rules (non-positive / non-integer /
boolean values fall through to the provider default).
@teknium1 teknium1 merged commit c28c2a2 into main May 5, 2026
6 of 7 checks passed
@teknium1 teknium1 deleted the salvage/pr-13825 branch May 5, 2026 20:28
@alt-glitch alt-glitch added type/docs Documentation improvements P3 Low — cosmetic, nice to have tool/tts Text-to-speech and transcription labels May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have tool/tts Text-to-speech and transcription type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants