Skip to content

[Feature Request] Support external/custom TTS endpoints for Read Aloud in Voice settings #9136

Closed

Description

@ShadoWrkr

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:

  1. Use the endpoint for Read Aloud generation instead of the local model
  2. Support OpenAI-compatible /v1/audio/speech requests (text, voice, model params)
  3. Allow an optional API key for authenticated endpoints
  4. 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

  1. added
    feature request
    on Aug 18, 2026
  2. self-assigned this
    on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions