LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

llama.cpp(outetts): add tts functionality to llama.cpp backend

Open mudler opened this issue 1 year ago • 3 comments

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

mudler avatar Apr 12 '25 12:04 mudler

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.

github-actions[bot] avatar Aug 13 '25 02:08 github-actions[bot]

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 TTS and TTSStream RPC handlers in backend/cpp/llama-cpp/grpc-server.cpp by integrating logic from the llama.cpp tts example (model loading, inference, audio output/streaming).
  • Add "llama-cpp" to the TTS-capable backends list in core/config/model_config.go so 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)?

mkdev5 avatar Feb 15 '26 13:02 mkdev5

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.

mudler-agent avatar Dec 01 '26 17:12 mudler-agent