r/MachineLearning • • 2d ago

Project TontaubeV1.1 Flash, an open-source, LLM-based TTS model that runs in real time in your browser on CPU [P]

We just released TontaubeV1.1 Flash, an open-source TTS model (Apache-2.0) that achieves ~10ms TTFA streaming on consumer GPUs and runs realtime in your browser on CPU (and on some phones!). It is a single-speaker model we distilled from our bigger V1.1 model.

Links

Model Overview

  • A 0.6B model with a Qwen3-0.6B backbone that speaks through our own single-voice codec on top of the VibeVoice decoder. With 4-bit weights it is a download of about 700 MB.
  • One English voice, Marcus. No voice cloning and no style controls.
  • Weights and code are Apache 2.0.
  • It runs on an NVIDIA GPU, on a plain CPU (Linux, Windows, macOS on Apple silicon) and inside Chrome without any server.

How it works

The model speaks through our own codec, an autoencoder built for only this one voice. It packs each frame of VibeVoice latents into just 16 values (through an autoencoder we trained on a single voice), at 7.5 frames per second of speech. The backbone reads the text character by character and predicts those 16 values one frame at a time with a small sampling head (several flow-matching steps). The codec's decoder expands them back into VibeVoice latents, the VibeVoice decoder turns those into 24 kHz audio, and an upsampler raises it to 48 kHz. Additionally, a small detector listens to the audio while it streams. When it detects an artifact, the engine goes back a frame and draws those frames again before they are played (can be disabled for a small increase in generation speed).

Numbers

Where it runsHardwareSpeedTime to first audio
GPU engineRTX 3090about 25-30x real time per stream, over 100x across many streams at onceabout 10 ms
CPU enginedesktop or server CPUabout 2-4x real timeabout 60-150 ms
Chrome on a desktopCPU onlyabout 1.3-2x real timeunder a second
Chrome on a desktopwith the graphics card (WebGPU)about 3-6x real timeabout 0.1-0.2 s

Output is 48 kHz by default. Switching to 24 kHz makes everything faster.

How to try it

The easiest way is the browser demo linked above. It downloads the model once and then runs on your own machine. Nothing you type leaves the browser. Running through WebAssembly costs some performance, so if you hit buffering issues, try the native CPU server through the repo. It comes with a local web UI (uv run tontaube ui, then open http://127.0.0.1:3000).

To run it locally:

git clone https://github.com/craitech/tontaube.git
cd tontaube
uv run python flash/speak.py "Welcome to Tontaube Flash." --wav flash.wav               # NVIDIA GPU
uv run python flash/speak.py --device cpu "Welcome to Tontaube Flash." --wav flash.wav  # CPU
uv run tontaube serve --model flash                                                      # server

The server also answers OpenAI's text-to-speech API at /v1/audio/speech, so tools built for that API work with it unchanged.

Limitations

  • English only, with one voice and no cloning.
  • It is autoregressive, so it can occasionally skip, repeat or mispronounce a word.
  • The browser version needs about 1.2 GB of memory. On an Android phone it reaches about real time for short texts. iPhones may run into issues in the browser.
  • On Linux, Chrome only gives web pages the graphics card after you enable two settings in chrome://flags. Without them it only runs on the CPU.
  • The GPU engine is Linux only for now. On Windows and macOS it runs on the CPU.

A native engine for phones is in development.

Please let me know if you run into any issues. We weren't able to test all possible platforms, so this helps us fix the things we couldn't test ourselves :)

4 Upvotes

0 comments sorted by