Repository navigation
Releases
TTS v1.3.0 — Vocal-Tract Dispersion, Prosody & Human-Level Clarity
TTS v1.3.0 (tts.computer)
Human-level phonetic clarity and 4.05+ unseen naturalness — still computed purely from a physical model of the human vocal tract in a single self-contained WebAssembly file (tts.wasm, ~1.74 MB raw, ~591 KB gzipped): zero external WASM imports, zero models, zero audio samples, with the complete JavaScript TTS SDK embedded inside it.
| Benchmark (male / female) | v1.0 | v1.1 | v1.2 | v1.3 | Human recordings |
|---|---|---|---|---|---|
| Phoneme error rate — CMU Arctic | 9% / 8% | 8% / 8% | 7% / 7% | 8.3% / 6.9% | 8.5–9.5% |
| Phoneme error rate — blind unseen held-out | — | — | 7.9% / 6.5% | 5.4% / 6.2% | 6–9% |
Phoneme error rate — conversational (style) |
— | — | 8.9% / 6.4% | 6.5% / 5.4% | 6.1–6.6% |
| Predicted naturalness (UTMOS, 1–5) — CMU Arctic | 3.55 / 3.59 | 3.61 / 3.63 | 3.78 / 3.78 | 3.91 / 3.97 | 4.3 |
| Predicted naturalness (UTMOS, 1–5) — blind unseen held-out | — | — | 3.77 / 3.86 | 4.05 / 4.06 | 4.3–4.4 |
Predicted naturalness (UTMOS, 1–5) — conversational (style) |
— | — | 3.57 / 3.61 | 3.93 / 3.99 | 4.4 |
Non-intrusive speech quality (SQUIM) — arctic / style |
— | — | 3.79 / 4.15 | 4.25 / 4.78 | 4.5–4.9 |
What's New
- Voiced-only phase dispersion & per-gender tone curves. Four causal all-pass sections (~1 ms round-trip delay of a 14–17.5 cm vocal tract) relax zero-phase glottal wavetable peakiness on the voiced path alone, leaving stop bursts and fricatives crisp at the lips. Each gender now has its own 10-band voiced tone curve paired with calibrated
F4/F5/F6laryngeal speaker's formant clusters (3451 / 3941 / 4489 Hzmale,3960 / 5060 Hzfemale). - Open-glottis subglottal coupling & smooth laryngeal drift. While the vocal folds are open, tracheal coupling damps
F1and adds windpipe pole-zero coloration (subglottal0.28male,0.34female); uncorrelated per-cycle step jitter is removed from the male source in favour of smooth physiological flutter and walk, and female fold closure is firmer (0.43). - Breath-group pitch declination & natural contour range. Subglottal pressure drifts gently down across each clause (
decl0.38 / 0.40) while phrase-final loudness decay is softened (fade_db1.2,tail_drop0.16) so clause-final words stay clear; short comma clauses share their sentence's pitch centre (~3.1 stF0 SD, matching studio readers). - Rhotic
[ɚ]offglides,/ɑr/vs/ɑ/, and post-liquid coarticulation. Post-vocalic/r/(rare, there, start) uses a vocalic[ɚ]offglide rather than lip-rounded onset[ɹʷ];/ɑr/(start, large, tomorrow) retracts cleanly while non-rhotic/ɑ/(pot, sock) keeps a highF3; and coda/l r/supply proper left-hand formant context to following stops (helps, garbage). - Stop-cluster & juncture clarity. Postalveolar
/tr/affrication (trail, train),/spr/labial burst ceiling (spring), utterance-initial voiced stop pre-vibration (Gad, Gregson), female back-velar burst scaling, pre-velar/ɪ/raising before/ŋ g/, and cohesive pre-tonictə-timing (tomorrow, today) drop conversational zero-LM word error rate down to 7.7% / 9.4%. - Speaker vowel spaces & diphthongs. Per-speaker vowel spaces brought in line with real male and female readers,
/ɔɪ/(joy, voice, boy) holds its rounded start for 40% before gliding front, and/ʊ/(could, good) and male/iː/(keep, each) stay distinct. - Smaller WASM & stronger G2P. Restored 7,700 word-initial letter-to-sound rules (
#.context), raising accuracy on rare words from 66% to 74% while shrinking the embedded exception lexicon from 21,700 to 16,100 entries (tts.wasmis ~150 KB smaller: 1.74 MB raw, 591 KB gzipped). - Everyday talk,
creak, richerrandomVoice(), and four new presets: casual contractions and slang (hiya, g'day, y'know, c'mon, outta, tryna, AI, iOS, arvo), drawn-out spellings (sooo, pleeease), natural times/dates/phone numbers/versions (3:30pm,17/11/2026,+61 412 345 678,v1.3.0), true breathy HNR drop onbreathiness, a newcreakvocal-fry control ([creak=0.9]), anatomicalTTS.randomVoice()diversity, and four new presets (crisp,elder,soft,mellow).
Release Assets
tts.wasm— standalone self-contained WebAssembly binary (~1.74 MB, ~591 KB gzipped) with internal JSTTSglue (tts_glue_ptr/tts_glue_len) and raw C-ABI exportstts.js— optional ES module loader (import init, { TTS } from "./tts.js")tts.d.ts— full TypeScript declarationstts-demo-site.zip— the demo studio as an upload-ready static site
4-Line Single-File HTML Embed (tts.wasm only)
<script type="module">
const { instance: { exports: w } } = await WebAssembly.instantiateStreaming(fetch("./tts.wasm"));
const { TTS } = Function("wasm", new TextDecoder().decode(new Uint8Array(w.memory.buffer, w.tts_glue_ptr(), w.tts_glue_len())))(w);
const voice = new TTS();
await voice.play("Hello from tts.computer!");
</script>Full changelog: v1.2.0...v1.3.0
TTS v1.2.0 — A More Natural Voice
TTS v1.2.0 (tts.computer)
A more natural voice. The consonants and the two default voices were fitted to how real speakers make each sound, measured sound by sound against two readers. Still a single self-contained WebAssembly file (tts.wasm): zero external WASM imports, zero models, zero audio samples, with the complete JavaScript TTS SDK embedded inside it.
| Held-out CMU Arctic sentences (male / female) | v1.0 | v1.1 | v1.2 | Human recordings |
|---|---|---|---|---|
| Phoneme error rate | 9% / 8% | 8% / 8% | 7% / 7% | 8–10% |
| Predicted naturalness (UTMOS, 1–5) | 3.55 / 3.59 | 3.61 / 3.63 | 3.78 / 3.78 | 4.3 |
On 30 newly written sentences that none of the work had seen, the step from v1.1 is +0.17 / +0.09 naturalness, with the male voice's phoneme error rate down from 8.7% to 6.7% and the female voice's unchanged at 6.9%.
What's New
- Sharper upper formants. The second and third resonances of every sound are narrower, more so in the male voice, so the formants stand out of the spectrum as a real voice's do. The largest single gain.
- The "th" of the, that, this after a pause or a consonant is a soft stop — silent for most of its length, the voice setting in at the release — instead of a buzzing fricative. Both readers make it that way.
- /z/ really loses its voice before a pause or another consonant. The rule existed, but the voice bar kept buzzing through it.
- Dark /l/ before vowels (lazy, blue), as American speakers have it: its second formant was 450 Hz too high.
- /u/ after t d n s sh ch j y (too, do, new, you) starts with the tongue still forward and glides back, and these words are misheard less often.
- Less hiss in /v/ and /f/, and an /h/ between voiced sounds that keeps the voice going (male voice).
- Default voices: tract length 17.0 cm (male, was 17.5) and 14.2 cm (female, was 13.9), closer to the readers' formants.
How it was found
The naturalness predictor judges a whole sentence and cannot say where a fault lies, so the new tools/phones.py looks inside the sounds: the level through every consonant, and the formants of every vowel and glide, in two readers and in the synthesizer on the same sentences. Where both readers differed from the synthesizer in the same way, the rule was changed — and kept only if the predictor and a phoneme recogniser both agreed. Several changes that were faithful to the readers were not kept: unreleased stops before consonants cost intelligibility, louder nasals cost naturalness.
Known weak spots that remain: /h/ in the female voice, sentences heavy in the vowels of good and go and in /d b j/, and long sentences.
Upgrading from v1.1.0
- The API is unchanged.
- The same text does not produce the same samples as v1.1.0, and the default
maleandfemalevoices have a slightly different colour (sharper formants, new tract lengths). SettractLengthCmto 17.5 or 13.9 to move back toward the old one. - Singing with the singer voices (
soprano,alto,tenor,baritone,bass_singer) is sample-for-sample what it was in v1.1.0; sung vowels keep their earlier resonance widths. Laughs and other vocal sounds are made by the same voices as speech, so they take on the new colour too.
Release Assets
tts.wasm— standalone self-contained WebAssembly binary (~1.9 MB, ~620 KB gzipped) with internal JSTTSglue (tts_glue_ptr/tts_glue_len) and raw C-ABI exportstts.js— optional ES module loader (import init, { TTS } from "./tts.js")tts.d.ts— full TypeScript declarationstts-demo-site.zip— the demo studio as an upload-ready static site
4-Line Single-File HTML Embed (tts.wasm only)
<script type="module">
const { instance: { exports: w } } = await WebAssembly.instantiateStreaming(fetch("./tts.wasm"));
const { TTS } = Function("wasm", new TextDecoder().decode(new Uint8Array(w.memory.buffer, w.tts_glue_ptr(), w.tts_glue_len())))(w);
const voice = new TTS();
await voice.play("Hello from tts.computer!");
</script>Full changelog: v1.1.0...v1.2.0
TTS v1.1.0 — Laughter, Vocal Sounds & More Natural Speech
TTS v1.1.0 (tts.computer)
The voice can now laugh — on its own, between words, and while it speaks — and make 53 sounds that are not words. Still a single self-contained WebAssembly file (tts.wasm): zero external WASM imports, zero models, zero audio samples, with the complete JavaScript TTS SDK embedded inside it.
What's New
Laughter and vocal sounds. 53 sounds in six groups, performed by the same vocal tract that speaks, so every voice makes them as itself:
| Group | Sounds |
|---|---|
| Laughter | laugh chuckle giggle guffaw cackle snicker hoho hehe nervous evil |
| Breath | inhale exhale gasp sigh yawn sniff pant phew |
| Reactions | hmm mm mhm uh-huh uh-uh uh-oh uh um huh aha oh ooh aww ahh ugh eww |
| Voice | hum groan scream sob whimper |
| Mouth | shh psst tsk kiss brr grr raspberry whistle fweet |
| Body | cough ahem hiccup sneeze snore |
// As tags in a script, made by whoever is speaking:
await voice.playScript(`
[female] The projector fell off the table, [gasp] and everyone just carried on! [laugh]
[deep] [chuckle] Of course they did. [sigh] Mondays.
`);
// How strongly, how long, or for a set time:
voice.speakScript("[laugh=strong] [sigh length=1.5] [laugh=3s] [snore for=5s]");
// From code:
await voice.playSound("guffaw", { intensity: 0.9 });
const threeSeconds = voice.sound("laugh", { durationMs: 3000 });
TTS.sounds(); // [{ id, label, group, about }, …]A duration is met by performing more or less of the sound, not by playing it slower: three seconds of laughter has more calls in it. Each sound takes its place in words and segments (sound: "laugh"), so captions and lip-sync follow it.
Laughing while speaking. The new laughter setting (0–1) and the [chuckling], [laughing], [giggling] deliveries change how the words themselves are said: a little is a smile in the voice; more, and the laugh breaks into the stressed vowels and spills out after the sentence.
const amused = new TTS({ gender: "female", laughter: 0.6 });
await amused.play("I can't believe you actually did that!");
await voice.playScript("[female, laughing] And then he dropped it again! [/laughing] Anyway.");More natural speech. Pronouns and auxiliaries are no longer accented and dwelt on, the duration model is refitted, /k g/ bursts are compact and loudness is steadier from word to word.
| Held-out CMU Arctic sentences (male / female) | v1.0 | v1.1 | Human recordings |
|---|---|---|---|
| Phoneme error rate | 9% / 8% | 8% / 8% | 8–10% |
| Predicted naturalness (UTMOS, 1–5) | 3.55 / 3.59 | 3.61 / 3.63 | 4.3 |
On 30 further sentences that no tuning has seen, the same step is +0.03 / +0.08 naturalness and 1.8 / 2.6 points fewer misheard sounds.
Demo studio. Redesigned, with a sound palette that inserts or auditions any sound, a "Laughing while speaking" slider, and worked examples in the pronunciation trainer.
Licence. The repository now carries the Apache License 2.0 text (LICENSE).
How the sounds were checked
Nobody can tune fifty sounds by ear, so they are set against an AudioSet tagger (tools/sounds.py) and measurements of real recordings. The tagger hears laughter in all 20 laughs (ten kinds, two voices) and puts the right name on 46 of the 68 renderings it is asked about; the cough and the throat-clearing are recognised. The sneeze, the snore, the sob and the sniff are not yet: they have the measured shape but are still stylised.
Release Assets
tts.wasm— standalone self-contained WebAssembly binary (~1.9 MB, ~620 KB gzipped) with internal JSTTSglue (tts_glue_ptr/tts_glue_len) and raw C-ABI exportstts.js— optional ES module loader (import init, { TTS } from "./tts.js")tts.d.ts— full TypeScript declarationstts-demo-site.zip— the demo studio as an upload-ready static site
4-Line Single-File HTML Embed (tts.wasm only)
<script type="module">
const { instance: { exports: w } } = await WebAssembly.instantiateStreaming(fetch("./tts.wasm"));
const { TTS } = Function("wasm", new TextDecoder().decode(new Uint8Array(w.memory.buffer, w.tts_glue_ptr(), w.tts_glue_len())))(w);
const voice = new TTS();
await voice.play("Hello from tts.computer! [laugh]");
</script>Upgrading from v1.0.0
- The API is a superset of v1.0.0; existing code runs unchanged.
- The same text does not produce the same samples as v1.0.0: the prosody and durations changed.
[gasp]is now its own sound (it was another name for[inhale]).- A tag that names a sound (
[laugh],[cough],[hmm]…) is now performed; v1.0.0 read the word out.
Full changelog: v1.0.0...v1.1.0
TTS v1.0.0 — Self-Contained WebAssembly Release
TTS v1.0.0 (tts.computer)
Single self-contained WebAssembly release (tts.wasm) — zero external WASM imports, zero models, zero audio samples, with the complete JavaScript TTS SDK embedded inside tts.wasm itself.
Release Assets
tts.wasm— standalone self-contained WebAssembly binary (~566 KB gzipped) with internal JSTTSglue (tts_glue_ptr/tts_glue_len) and raw C-ABI exportstts.js— optional ES module loader (import init, { TTS } from "./tts.js")tts.d.ts— full TypeScript declarations
4-Line Single-File HTML Embed (tts.wasm only)
<script type="module">
const { instance: { exports: w } } = await WebAssembly.instantiateStreaming(fetch("./tts.wasm"));
const { TTS } = Function("wasm", new TextDecoder().decode(new Uint8Array(w.memory.buffer, w.tts_glue_ptr(), w.tts_glue_len())))(w);
const voice = new TTS();
await voice.play("Hello from tts.computer!");
</script>