← All models

text-to-speech Β· audio Β· WebGPU/WASM Β· ~580 MB

OuteTTS β€” a language model that speaks

Most text-to-speech models are custom acoustic networks. OuteTTS takes a different route: it is a plain Qwen2 language model that was taught to predict audio tokens instead of words. Feed it text (and optionally a speaker profile) and it autoregressively generates a stream of discrete codec tokens β€” then a second model, the WavTokenizer neural codec, decodes that stream into an actual 24 kHz waveform. It is TTS reframed as next-token prediction, and it runs end-to-end in your browser. Nothing is uploaded.

At a glance

Modelonnx-community/OuteTTS-0.2-500M (ONNX of OuteAI/OuteTTS-0.2-500M)
Task / pipelinetext-to-speech β€” via the official outetts library (wraps Transformers.js)
ArchitectureLLM-based TTS: a Qwen2 ~500M-param decoder generates audio tokens β†’ the WavTokenizer codec (75 tokens/sec) decodes them to a 24 kHz waveform
ControlsSpeaker profile, temperature, repetition_penalty, max_length β€” real LLM sampling knobs
Quantizationq8 (8-bit) ONNX for both the LLM and the codec decoder
BackendWebGPU accelerates the LLM when a GPU adapter exists; honest WASM fallback (the codec decoder always runs on WASM/CPU)
Download~508 MB (LLM) + ~72 MB (codec) β‰ˆ 580 MB, cached after first load
LanguagesEnglish, Chinese, Japanese, Korean (this demo uses English speakers)
LicenseCC-BY-NC-4.0 β€” non-commercial. Fine for demos/research; not for commercial products.
Web APIsWebAssembly, Web Workers, Web Audio (playback), optionally WebGPU β€” WASM path is Baseline widely available

Run it

Type something, pick a voice, and generate. Because the LLM produces audio one token at a time, synthesis is not instant β€” the readout shows the real generation time, audio-token count, and the real-time factor. On WASM this is genuinely slow (an autoregressive 500M model on the CPU); a WebGPU device is much faster.

See inside β€” text β†’ audio tokens β†’ waveform

OuteTTS is two models in a row. Making that legible is the point of this panel: the LLM never emits sound directly β€” it emits tokens, and only the codec turns tokens into a waveform. The WavTokenizer runs at 75 tokens per second of audio, so the token count below is a real, physical property of the clip you just generated.

1 Β· Text

Your sentence, formatted with the speaker profile into the LLM prompt.

2 Β· Qwen2 LLM

Autoregressively predicts discrete audio tokens (WebGPU or WASM).

3 Β· WavTokenizer

Neural codec decodes the token stream into a 24 kHz waveform (WASM).

Generate a clip above to inspect its real token/latency breakdown.

Why it matters

Framing speech as language modelling is what makes modern TTS controllable and composable. Because the generator is an LLM, the same sampling knobs you know from text β€” temperature, repetition penalty β€” shape the voice, and a speaker profile conditions it like a system prompt. And it all runs locally.

Use cases

Basics

Type a line, hear it spoken, and see the text→tokens→waveform pipeline made real.

Practical

Narrate any pasted passage β€” chunk long text into sentences and stitch a single clip.

Wild

Voice & style control: sweep temperature and speakers to hear the LLM's delivery change.

Multi-model

A summariser LLM condenses a passage, then OuteTTS speaks the summary aloud.

How the API works

The outetts library orchestrates the LLM and the codec; you drive it like any TTS:

import { HFModelConfig_v1, InterfaceHF } from "outetts";

const cfg = new HFModelConfig_v1({
  model_path: "onnx-community/OuteTTS-0.2-500M",
  language: "en",
  dtype: "q8",         // 8-bit LLM + codec
  device: "webgpu",    // or "wasm"
});
const tts = await InterfaceHF({ model_version: "0.2", cfg });

const speaker = tts.load_default_speaker("male_1");
const output = await tts.generate({
  text: "Speech synthesis is the artificial production of human speech.",
  temperature: 0.1,          // LLM sampling β€” lower = steadier delivery
  repetition_penalty: 1.1,
  speaker,
});
// output.audio is a waveform Tensor; output.sr is 24000 Hz.

This page runs all of that in a Web Worker. The LLM tries WebGPU first and falls back to WASM honestly; the WavTokenizer decoder always runs on WASM (WebGPU isn't supported for it yet). We build a 16-bit PCM WAV from output.audio for playback and download.

References