llama.cpp(outetts): add tts functionality to llama.cpp backend
Is your feature request related to a problem? Please describe. Llama.cpp offers an example on how to inference audio here: https://github.com/ggml-org/llama.cpp/blob/master/examples/tts/tts.cpp
Describe the solution you'd like The llama.cpp backend model to support tts
Describe alternatives you've considered
Additional context
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Hi @mudler, I’d like to work on adding TTS support to the llama.cpp backend and want to confirm the approach before opening a PR.
Proposed approach:
- Implement the
TTSandTTSStreamRPC handlers inbackend/cpp/llama-cpp/grpc-server.cppby integrating logic from the llama.cpp tts example (model loading, inference, audio output/streaming). - Add
"llama-cpp"to the TTS-capable backends list incore/config/model_config.goso models with TTS use cases can use this backend.
Does this align with what you have in mind for this issue, or would you prefer a different scope (e.g. non-streaming only first)?
The llama.cpp backend has TTS since v4.9.0 (#11392, Qwen3-TTS, later also LFM3-Audio). OuteTTS models run through the outetts backend from the gallery.