use case · multi-model · CharsiuG2P byT5 (~84 MB) → KittenTTS Nano 0.8 (~27.6 MB) · WASM · ~111.6 MB total

Pronunciation & Neural Speech Pipeline

Grapheme-to-phoneme is the front-end brain of every text-to-speech engine. Here two independent on-device models run in isolated Web Workers: Stage 1 (CharsiuG2P byT5, ~84 MB) predicts neural IPA transcriptions word-by-word (comparing <eng-us> vs <eng-uk> or foreign accents), then Stage 2 (KittenTTS Nano 0.8, ~27.6 MB) — reusing models/kitten-tts-nano-0-8/worker.js with zero weight duplication — synthesizes real 24 kHz spoken audio while exposing its own rule-based eSpeak-NG IPA so you can compare neural G2P vs rule-based TTS phonemization side-by-side and listen live.

1 · Two independent on-device models (isolated Web Workers)

Stage 1 · CharsiuG2P byT5 (~84 MB)

100-language neural G2P (Santyyy/g2p_multilingual_byT5_tiny_16_layers_100-onnx, WASM fp32, MIT).

Waiting for Stage 1 initialisation.

Stage 2 · KittenTTS Nano 0.8 (~27.6 MB)

15M-parameter 8-voice StyleTTS 2 neural TTS (KittenML/kitten-tts-nano-0.8-int8, WASM int8, Apache-2.0) reusing models/kitten-tts-nano-0-8/worker.js.

Waiting for Stage 2 initialisation.

Prepare both models above (or load either stage independently to inspect IPA or audio on its own).

2 · Pronunciation phrase & pipeline controls

1.00×
Stage 1 · G2Pwaiting
Stage 2 · TTSwaiting
G2P vs eSpeak–
Audio length–
Real-time factor–

3 · Neural G2P IPA vs live neural speech synthesis

Run the 2-stage pipeline above to compare CharsiuG2P's neural byte-level IPA against KittenTTS Nano 0.8's internal eSpeak-NG phonemizer and listen to the synthesized 24 kHz waveform.

Stage 1 · CharsiuG2P byT5 (Neural G2P)

Not run

Primary IPA (<eng-us>)

Waiting for Stage 1…

Stage 2 · KittenTTS Nano 0.8 (24 kHz Speech)

Not run

KittenTTS internal eSpeak-NG en-us IPA

Waiting for Stage 2…

Note: KittenTTS Nano 0.8 is an English (en-us) acoustic model; when Stage 1 inspects eng-uk or foreign loanwords, Stage 2 demonstrates how an English TTS renders the text.

4 · Empirical G2P vs TTS benchmark & snapshot exports

Preset Lang CharsiuG2P IPA eSpeak-NG IPA Agreement Audio / RTF
Run the 2-stage pipeline (or click “Run all 5 presets”) to build the comparison table.