RepositoryC++USUnited States
HoppouAI

HoppouAI/Breeze-TTS-2.cpp

Bilingual English and Mandarin text to speech in C++ and GGUF. Voice design, cloning, direction and experimental voice conversion. Vulkan backend, streaming HTTP and WebSocket server, web UI and a C API.

207stars
36forks
0issues
1views

Featured achievements

The project's latest awards

2
TINIX TRENDING·Topic: qwen3

#2 Repository of the week

2
TINIX TRENDING·Topic: speech-synthesis

#2 Repository of the week

2
TINIX TRENDING·Topic: gguf

#2 Repository of the week

Breeze-TTS-2.cpp

Bilingual instruction following text to speech in C++ and GGUF. Voice design, voice cloning, voice direction and experimental voice conversion, streaming at better than realtime on a mid range GPU.

License C++17 Vulkan GGUF weights

A C++ / GGUF reimplementation of BreezeBlue/Breeze-TTS-2, running on ggml. The Vulkan backend means it works across NVIDIA, AMD and Intel GPUs, and it falls back to CPU. Ships a CLI, a streaming HTTP and WebSocket server with a web UI, and a plain C shared library for bindings.

English and Mandarin, 24 kHz, roughly 1.5x realtime at Q8_0 on an RTX 3060, 1.3x with guidance.

Demo

Voice design, cloning, direction, vocal event tags, and voice conversion on a sung recording. Every clip was generated on one RTX 3060, faster than realtime, and nothing was cherry picked.

https://github.com/user-attachments/assets/b63e4664-497f-4bac-b9e2-50bf571df30a

Documentation

Build Models CLI Server WebSocket
Voices Voice conversion C API Python Architecture

What it does

ModeYou give itYou get
Voice designA text description of a voiceA voice invented to match the description
Voice cloningA reference clip and its transcriptNew speech in that voice
Voice directionA reference clip plus an instructionThat voice, steered in tone or pace
Voice conversionA recording to respeak, and a target voiceThe same performance in a different voice

Download

Prebuilt Vulkan builds for Windows and Linux (x64) are on the releases page. They run on NVIDIA, AMD and Intel GPUs with nothing else to install beyond a current GPU driver, and fall back to the CPU when there is no GPU. Unpack, grab a model from the Weights section, and run:

breeze-server breeze-tts-2-q8_0.gguf --webui

Then open http://localhost:8080/. The CPU side needs AVX2, which any x64 CPU from roughly 2013 onwards has. On Linux the Vulkan loader has to be installed, which it is on any desktop with GPU drivers set up (the package is libvulkan1 on Debian and Ubuntu).

Build

git clone --recursive https://github.com/HoppouAI/Breeze-TTS-2.cpp
cd Breeze-TTS-2.cpp
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j

Add -DBREEZE_VULKAN=OFF for a CPU only build. Outputs are breeze-cli, breeze-convert, breeze-server, breeze-quantize and the shared library. See docs/build.md.

Nix

With Nix (flake support on), nix develop gets you the build environment above — CMake, Ninja, the Vulkan SDK and the Python conversion deps — plus convenience commands. nix develop .#cpu is a CPU-only shell.

breeze-build         # configure + build (Vulkan); pass --cpu to skip Vulkan
breeze-cli           # run build/breeze-cli
breeze-server        # run build/breeze-server

The flake also ships a NixOS module that runs breeze-server as a systemd service. Model picks from the Hub catalog are downloaded into the state dir and sha256-verified on every start, saved voices persist across reboots, and the web UI is one option away:

{
  inputs.breeze-tts.url = "github:HoppouAI/Breeze-TTS-2.cpp/feat/nix";
  # ...
  modules = [
    breeze-tts.nixosModules.default
    {
      hardware.graphics.enable = true;  # Vulkan driver bits for the GPU backend
      services.breeze-tts = {
        enable = true;
        webui = true;
        model = "q8_0";   # or: customModel = "/path/to/your.gguf";
      };
    }
  ];
}

All options, the state-dir layout and the operational details: nix/README.md.

Weights

Model on Hugging Face

Prebuilt GGUFs are on the Hub at HoppouAI/Breeze-TTS-2.cpp, or convert them yourself. The download must include the audio_tokenizer/ directory, which holds the vocoder.

pip install -r scripts/requirements.txt
python scripts/convert_hf_to_gguf.py /path/to/Breeze-TTS-2 -o breeze-tts-2-f16.gguf --dtype f16
build/breeze-quantize breeze-tts-2-f16.gguf breeze-tts-2-q4_k.gguf q4_k
VariantSizeApproximate VRAMNotes
F165.9 GB~7 GBReference quality
Q8_03.3 GB~4 GBRecommended
Q6_K2.9 GB~3.5 GB
Q4_K2.4 GB~3 GBSmallest safe choice
Q8_0-dd4, Q8_0-dd2, Q4_K-dd22.3 to 3.4 GBExperimental, see below

The -dd variants quantize the depth decoder as well, which the others leave at higher precision. They can be meaningfully faster on hardware where the depth decoder is the bottleneck, since it runs 15 sequential steps for every single frame of audio. The catch is that depth codes feed back into the backbone each frame, so error compounds with length: output holds up early and then drifts muffled and thin past roughly 45 seconds of continuous generation. Fine for short lines, not for narration.

CLI

# voice design
build/breeze-cli breeze-tts-2-q8_0.gguf \
  --text "(sigh) Welcome aboard. Your journey begins now." \
  --instruction "A warm, thoughtful young woman with a clear, calm delivery." \
  --output design.wav

# voice clone
build/breeze-cli breeze-tts-2-q8_0.gguf \
  --text "It is good to hear your voice again." \
  --ref-audio reference.wav --ref-text "Exact transcript of the reference." \
  --output clone.wav

# voice direction
build/breeze-cli breeze-tts-2-q8_0.gguf \
  --text "(clears throat) We need to talk." \
  --instruction "Speak slowly with a restrained, serious tone." \
  --ref-audio reference.wav --ref-text "Exact transcript of the reference." \
  --output direction.wav

Encoding a reference clip is the slowest part of a clone and it is deterministic, so save it once with --save-voice name and use --voice name from then on. Saved voices load instantly, work in the CLI, the server and the web UI, and cut time to first audio from around 900 ms to around 280 ms. See docs/voices.md.

Vocal events

Inline tags in round brackets produce non speech sounds. (laugh), (sigh), (cough) and (clears throat) are the reliable ones, with [笑] and [叹气] on the Chinese side, but the tag vocabulary is free form. The model was trained on descriptive tags rather than a fixed token list, so things like (whispering), (gasp) or (nervous chuckle) will often work.

The catch is that at the default --cfg-scale 1.0 the model treats a tag as a suggestion and usually ignores anything outside the common set. Vocal events generally need --cfg-scale 2 to 3 to actually fire, because guidance is what pushes the output away from plain neutral reading. Expect some added harshness at that range, so raise it for lines that need the event and drop back to 1.0 for ordinary speech.

build/breeze-cli breeze-tts-2-q8_0.gguf \
  --text "(nervous chuckle) I am sure it is nothing to worry about." \
  --instruction "An anxious man trying to sound casual." \
  --cfg-scale 2.5 --output event.wav

Voice conversion (experimental)

breeze-convert respeaks an existing recording in another voice. Unlike cloning, which reads new text, this keeps the original performance: the timing, the phrasing, the rhythm and the emphasis all survive, and only the speaker identity changes. This is not part of the upstream model. It falls out of the way the codec splits semantic content from acoustic detail, so it is unique to this implementation and it is genuinely experimental.

build/breeze-convert breeze-tts-2-q8_0.gguf \
  --source recording.wav --text "Transcript of the recording." \
  --ref-audio target_voice.wav --ref-text "Exact transcript of the target clip." \
  --output converted.wav

Worth knowing before you rely on it:

  • It defaults to near greedy sampling (--temp 0.3 --top-k 1) on purpose. Opening sampling up lets source timbre leak back into the result, which measurably weakens the target identity.
  • Pitch is regenerated, not copied. The take is re-sung in the target voice's own register rather than at the source's, so a converted vocal can land a fifth away from the original. Whether the tune survives varies by clip, so judge it by ear. --keep-acoustic 1 or 2 copies the lowest acoustic codebooks straight from the source and pulls more of the original contour through, at some cost to how cleanly the target voice comes out. Higher values fall apart, and on ordinary speech even 1 causes warbling, so leave it at 0 unless the source is sung.
  • Runs at roughly realtime, so a three minute recording takes about three minutes.
  • --text is optional but matters most here. Giving the source transcript lines the backbone up with the forced codes. The same sung clip came back as "Does it pinch I? Send my tears" textless, and as "drink it up, I have no fear" once the lyrics were supplied.

See docs/voice-conversion.md.

Server

build/breeze-server breeze-tts-2-q8_0.gguf --host 127.0.0.1 --port 8080 --webui

Open http://localhost:8080/ for the web UI. The HTTP API streams mono 24 kHz signed 16 bit little endian PCM, matching the reference server.

curl -X POST http://127.0.0.1:8080/v1/audio/speech \
  --form-string "text=(clears throat) We need to talk." \
  --form-string "instruction=Speak slowly with a restrained, serious tone." \
  --form-string "voice_id=narrator" \
  --output out.pcm

Use --form-string for text fields, not -F. A value starting with ( makes curl build a multipart group instead of sending the text, which bites the moment you use a vocal event tag.

The same endpoint takes OpenAI style JSON too, so SillyTavern and the OpenAI SDKs can use it as a drop in TTS provider, with MP3, WAV or PCM streamed back and server sent events if you ask for them. See docs/server.md.

A WebSocket server also comes up on the HTTP port plus one. It takes text incrementally, streams audio back as it is produced, and supports changing the delivery instruction or cancelling mid sentence, which is what you want when driving it from a chat model. See docs/websocket.md.

Neither port has authentication or rate limiting. Keep them bound to 127.0.0.1 unless something in front of them is handling that.

MCP server

breeze-tts-2-mcp is an MCP server that gives MCP-speaking agents the voice toolkit: speaking aloud with voice direction and vocal events (speak, speechJobs), multi-voice dialogue and narration as one artifact (speakScript), voice design from a description (designVoice), and saved voice library management (saveVoice, listVoices, deleteVoice). It drives a running breeze-server over HTTP and coordinates local audio playback across clients.

Setup: clone, npm install && npm run build, and point it at the server with BREEZE_TTS_URL. A breeze-speak binary and an Agent Skills bundle cover callers without an MCP host. Registering it with Zed, Claude Code or any stdio MCP client, the full tool list and all environment options are in the upstream README.

Bindings

The shared library exposes a plain C ABI, so any language with an FFI can drive it.

breeze_context * ctx = breeze_init("breeze-tts-2-q8_0.gguf", 1);
breeze_request req = {0};
req.text = "Hello there.";
req.cfg_scale = 1.0f;
req.seed = 42;
breeze_generate_wav(ctx, &req, "out.wav");
breeze_free(ctx);

Every field treats 0 as "use the model default", so zero initialising the struct is safe and stays safe as fields are added. See docs/c-api.md and docs/ctypes.md.

On mingw the library links the compiler runtime statically, so vulkan-1.dll from the GPU driver is the only external dependency.

Notes

  • --cfg-scale defaults to 1.0, matching the reference. Values above 1 run the whole pipeline twice and push harder toward the instruction. Past about 3 it turns harsh.
  • The vocoder comes from the bundled audio_tokenizer/, not the Mimi codec sitting in the main checkpoint. The reference never uses that one at inference time.
  • Streaming decodes in 2 second chunks with 72 frames of left context, which matches the vocoder transformer's attention window, so chunks decode the same as they would in a single pass.

License

Source code is Apache 2.0. The MP3 encoder in third_party/shine is a separate submodule under the LGPL 2.0. The Breeze TTS 2 model weights are governed by the BreezeBlue Research and Non-Commercial License. You are responsible for complying with the weight license and for obtaining consent for any reference audio or voices you use.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
OpenBMB/VoxCPM

VoxCPM2: Tokenizer-Free TTS for Multilingual Speech Generation, Creative Voice Design, and True-to-Life Cloning

43.1k
Nov 9, 2026
RepositoryC++
rhasspy/piper

A fast, local neural text to speech system

11.3k
Aug 26, 2025
Modeltext-to-speech
k2-fsa/OmniVoice

OmniVoice 🌍           OmniVoice is a massively multilingual zero-shot text-to-speech (TTS) model supporting over 600 languages. Built on a novel diffusion language model-style architecture, it delivers high-quality speech w...

♥0
4.3M
Nov 20, 2026
Modeltext-to-speech
ResembleAI/chatterbox

Chatterbox TTS Made with ❤️ by Latest Release: Chatterbox Multilingual V3 Chatterbox Multilingual V3 is the latest general-purpose multilingual TTS model in the Chatterbox family. It keeps the same 0.5B model size while improving speaker similarity,...

♥0
3.2M
Jun 10, 2026
RepositoryPython
rany2/edge-tts

Python library and CLI for Microsoft Edge's online text-to-speech: neural voices, MP3 output, SRT subtitles. No Edge or API key needed.

12.7k
Dec 1, 2026
Modeltext-to-speech
audio-cpp/audio.cpp-gguf

audio.cpp GGUF Model Packages This directory contains audio.cpp-native GGUF conversions of multiple speech models. These files are intended for use with audio.cpp(https://github.com/0xShug0/audio.cpp). For conversion details, supported layouts, dire...

♥0
10.2M
Dec 1, 2026
RepositoryPython
netease-youdao/EmotiVoice

EmotiVoice 😊: a Multi-Voice and Prompt-Controlled TTS Engine

8.5k
Sep 3, 2026
RepositoryPython
jaywalnut310/vits

VITS: Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech

7.9k
Dec 6, 2023
Modeltext-to-speech
Serveurperso/Qwen3-TTS-GGUF

Qwen3-TTS GGUF GGUF weights for qwentts.cpp(https://github.com/ServeurpersoCom/qwentts.cpp), a C++17/GGML port of Qwen3-TTS 12 Hz (Qwen team, Alibaba). Multilingual zero shot TTS with named speakers and Mandarin dialects, 24 kHz mono. Runs on CPU, C...

♥0
1.8M
Sep 9, 2026