Instructions to use duckwork-ai/quack-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use duckwork-ai/quack-tts with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download duckwork-ai/quack-tts --local-dir quack-tts
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Quack TTS
A small English text-to-speech model that runs on a laptop CPU. It has two voices, Brook and Harbor, and its own text front end for numbers, dates, codes and symbols.
- Small: 35.5M parameters in total; about 39 MB to download in 8-bit integers (int8).
- Fast: on an Apple M4, one CPU thread makes speech 13Γ faster than real time; the first audio of a typical sentence is ready after 0.33 s.
- Clear: 1.8 % word error rate on everyday sentences; 85 % of hard sentences (phone numbers, dates, codes, URLs, math) said correctly.
- Trained from scratch on openly licensed audiobook speech.
Voices
| ID | Name | Description |
|---|---|---|
en_female_1 |
Brook | female, American English |
en_male_1 |
Harbor | male, American English |
Each voice is a mix of two readers from the training data (the average of their speaker vectors), so it doesn't sound like any one real person. The file holds only these two voices: the per-reader speaker table used in training is not part of the release.
Use
Python
pip install quack-tts
from quack_tts import QuackTTS
tts = QuackTTS() # downloads the model (~40 MB) once
audio = tts.speak("Call me at 555-0143.", voice="Brook") # numpy float32, 24 kHz
tts.save("The meeting moved to 3:45 p.m.", "meeting.wav", voice="Harbor")
Swift (Apple silicon, MLX)
quack-tts-swift runs the same files on the Mac's GPU with MLX: about 0.1 s for a typical sentence on an M4.
.package(url: "https://github.com/duckwork-ai/quack-tts-swift", from: "0.1.0")
import QuackTTS
let model = try QuackModel(folder: try await QuackModel.download())
let audio = model.speak("Call me at 555-0143.", voice: try model.voice("Brook")) // [Float], 24 kHz
How it works
Text goes through four steps, all included in the release:
- Text normaliser (rule-based, our own): turns written text into the words a speaker would say: "$3.5M" β "three point five million dollars", "555-0143" β "five five five, zero one four three", "x β₯ 0" β "X is greater than or equal to zero".
- Phonemes: words are looked up in the CMU Pronouncing Dictionary. Words it doesn't know (names, new terms) go through a small grapheme-to-phoneme model (5.6M parameters, trained on that dictionary). Capitals are spelled ("UPS" β "U P S").
- Acoustic model (16.4M parameters), in the style of Matcha-TTS (Mehta et al., 2024):
- a transformer text encoder;
- a duration predictor that decides how long each sound lasts, trained with monotonic alignment search;
- a flow-matching decoder that turns the stretched text into a mel spectrogram in 10 steps. It makes the whole sentence at once, not frame by frame.
- Vocoder: Vocos (13.5M parameters, MIT) turns the mel spectrogram into 24 kHz audio. Its weights are used as published, stored in int8.
Evaluation
All quality numbers below come from one harness: the same sentences, the same transcriber (Whisper large-v3), one take per sentence. Every model runs as it ships, with its own text handling and the voice from its own model card's example.
Everyday sentences: 500 sentences from LibriTTS-R test-clean (speakers and texts no model trains on), word error rate (WER) of Whisper's transcript.
Hard sentences: the 500 English sentences of Gradium TTS Hard Cases (CC BY 4.0), 20 categories of 25 sentences: phone numbers, dates, times, currency, codes, URLs, units, math and more.
- The set has no recordings, and a word error rate against the written sentence counts correct readings as wrong ("#" β "pound", "6:05" β "six oh five").
- So an LLM judge (Claude Opus 5.5) reads the written sentence and Whisper's transcript and decides whether the sentence was said correctly, ignoring how Whisper chose to write it.
- The judge was checked against human listening on 100 clips of our own similar sentences:
- It caught every error that showed in the transcript.
- It missed the ones Whisper writes back in the written form, such as a number read as a count.
- Where it flagged clips the listener heard as right, Whisper had heard something different. Whisper doesn't know the intended sentence, so it is stricter than a listener who does.
- The number is the share of sentences said correctly.
| Model | Voice | Parameters | Download | Everyday WER | Hard sentences said correctly |
|---|---|---|---|---|---|
| Phonon 31m (q8) | Easton | 31M | 65 MB | 1.89 % | 88.2 % |
| Quack TTS | Harbor | 35.5M | 40 MB | 1.85 % | 85.4 % |
| Quack TTS | Brook | 35.5M | 40 MB | 1.83 % | 85.0 % |
| Kokoro 82M | af_heart | 82M | 328 MB | 1.54 % | 73.4 % |
| Pocket TTS | alba | 100M | 219 MB | 1.44 % | 59.8 % |
| Kitten TTS Nano 0.8 (int8) | Jasper | 15M | 28 MB | 2.44 % | 54.6 % |
| Qwen3-TTS 0.6B | Ryan | 0.6B | 2,494 MB | 2.21 % | 51.8 % |
| Supertonic 3 | M1 | 99M | 398 MB | 1.51 % | 50.6 % |
- Parameters as each model card states them. Not every card counts the same parts: some leave out the vocoder or codec. Quack's 35.5M is everything: acoustic model 16.4M, G2P 5.6M and Vocos 13.5M.
- Download is the size of the files the tested variant fetches from Hugging Face (weights plus the one voice used), as published.
int8: the release stores every weight matrix as 8-bit integers (one scale per row), Vocos included. On the everyday sentences that costs nothing measurable: float32 β int8 Brook 1.83 % β 1.80 %, Harbor 1.85 % β 1.91 % WER (500 sentences each, same seed; differences within noise). The table above shows float32.
Speed (Apple M4, PyTorch, whole path from text to audio, median over 200 everyday sentences; Quack makes the whole sentence at once, so first audio = the whole sentence):
| Time to first audio | Real-time factor | |
|---|---|---|
| One CPU thread | 0.33 s (90th percentile 0.72 s) | 0.075 |
| M4 GPU | 0.11 s (90th percentile 0.22 s) | 0.025 |
Training data
| Data | Use | License |
|---|---|---|
| LibriTTS-R (Koizumi et al., 2023) | 512 h, 2,305 speakers | CC BY 4.0 |
| Hi-Fi TTS (Bakhturina et al., 2021) | 281 h, 10 speakers; both voices are mixes of its readers | CC BY 4.0 |
| CMU Pronouncing Dictionary | lexicon and G2P training | BSD-style |
The acoustic model was trained from scratch (no pretrained weights) on 741 h after filtering. Whisper large-v3 was used only to filter training clips and to evaluate; it is not part of the model.
Limitations
- English only.
- Hard sentences: weakest on dates written with slashes ("7/2"), long order and invoice numbers, version strings and abbreviations (about 60β80 % said correctly in those categories).
- Readings a rule can't decide: a short code like "Text STOP to 72345" is read as a number ("seventy two thousand ..."); "31C" stays "thirty one C" because it may be a seat number.
- Homographs get the dictionary's first reading regardless of context ("read", "live", "lead").
- Prosody is plainer than in large autoregressive models: one take per sentence, no emotion or style control.
- The evaluation relies on Whisper: it doesn't know the intended sentence and can mishear correct speech. That affects every model in the table the same way.
Responsible use
The voices are mixes and imitate no real person, and the release can't be made to speak as an individual training reader. Don't use Quack TTS to pass synthetic speech off as a real person or to deceive listeners.
Credits and citations
- Vocos: Siuzdak, Vocos: Closing the gap between time-domain and Fourier-based neural vocoders
for high-quality audio synthesis, 2023. Weights
charactr/vocos-mel-24khz, MIT, Copyright (c) 2023 Charactr Inc.; shipped here converted to int8 (license file included). - Matcha-TTS: Mehta et al., Matcha-TTS: A fast TTS architecture with conditional flow matching, ICASSP 2024.
- LibriTTS-R: Koizumi et al., 2023, CC BY 4.0.
- Hi-Fi TTS: Bakhturina et al., Hi-Fi Multi-Speaker English TTS Dataset, 2021, CC BY 4.0.
- CMU Pronouncing Dictionary, Copyright (C) 1993-2015 Carnegie Mellon University (BSD-style; the license file ships with the model).
- Gradium TTS Hard Cases (evaluation only), CC BY 4.0.
- Downloads last month
- 28
Quantized