You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Support external/custom TTS endpoints for Read Aloud in Voice settings #9136
Feature Request: External TTS Endpoint Support for Read Aloud
Current Behavior:
Unsloth Studio's "Read Aloud" feature (found in the Voice settings tab) currently requires loading a TTS model directly into memory. This means every time I enable Read Aloud, I'm consuming VRAM for the TTS model on top of my main LLM.
Desired Behavior:
Allow the Voice settings tab to accept an external OpenAI-compatible TTS endpoint URL (and optional API key). When configured, Read Aloud should route text chunks to that endpoint instead of loading a local TTS model.
Why this matters:
I'm running Kokoro TTS on a separate machine to conserve VRAM on my primary RTX 3080 Ti (12 GB). The TTS model needs to stay off my main GPU so I can devote all available VRAM to the LLM. Having to load a TTS model locally defeats the purpose of this architecture and creates VRAM contention that degrades both inference and audio quality.
Suggested Implementation:
Add a "Custom TTS Endpoint" field in the Voice settings tab alongside the current TTS model selector. When a URL is provided, the app should:
Use the endpoint for Read Aloud generation instead of the local model
Support OpenAI-compatible /v1/audio/speech requests (text, voice, model params)
Allow an optional API key for authenticated endpoints
Gracefully fall back to the local model if the endpoint is unreachable
Context:
I saw issue #4963 mentioning Kokoro TTS as a desired integration. An external endpoint approach would cover Kokoro, Piper, and any other OpenAI-compatible TTS server without needing to build individual model loaders into the app.
Happy to test any beta builds or provide logs if needed.
Activity