|
Download tools/tts/README.md from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/tts/README.md
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github/tools/tts/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/tts/README.md
1.09 kB
| # llama.cpp TTS | |
| This is a tool to demonstrate audio generation capability in llama.cpp via `libmtmd`. It was added via PR [#26254](https://github.com/ggml-org/llama.cpp/pull/26254) | |
| Note: this tool used to serve as a demo for OuteTTS, but it was converted to a more model-agnostic tool. | |
| ## Common usage | |
| Simple usage: | |
| ```sh | |
| llama-tts -hf ggml-org/Qwen3-TTS-12Hz-1.7B-Base-GGUF -p "Hello world" --output out.wav | |
| ``` | |
| Common params: | |
| - Sampling params such as `--top-k`, `--top-p`, `--temp`, etc. | |
| - `-n <number_of_frames>` limits the output length, e.g. `-n 500`. Note that how many milliseconds each frame represents varies by model | |
| - Core inference params such as `-ngl`, `-b`, `-ub`, etc. | |
| ## Qwen3-TTS | |
| Available params: | |
| - `--tts-lang` can be `zh`, `en`, `de`, `it`, `pt`, `es`, `ja`, `ko`, `fr`, `ru` (default: `en`) | |
| - `--tts-speaker-file` should point to a speaker reference audio file (wav, mp3) | |
| Example usage: | |
| ```sh | |
| llama-tts -hf ggml-org/Qwen3-TTS-12Hz-1.7B-Base-GGUF \ | |
| -p "Hello world" \ | |
| --tts-lang english \ | |
| --tts-speaker-file speaker.mp3 \ | |
| --output out.wav | |
| ``` | |