use case · basics · A/B speaker timbre & speaking-rate lab · 24 kHz WASM · 13.5 MB

Voice Timbre & Speaking-Rate Comparison Lab

Synthesize the same English sentence under two different speakers or speaking rates with KittenML/kitten-tts-2-pico, audition both 24 kHz waveforms side-by-side, and quantify real duration, RMS loudness (dB), and spectral centroid (Hz) shifts directly on device.

1 · Configure A/B comparison

Quick A/B presets

Take A configuration

Take B configuration

Initialise Kitten TTS 2 Pico (13.46 MB int8 CPU WASM) above to compare voice timbre and speaking rate.

Take A · Eleanor (1.00×)

Awaiting synthesis…

Take B · Otis (1.00×)

Awaiting synthesis…

2 · Acoustic delta readout (Take B vs Take A)

Run both takes to compute real duration ratio, RMS loudness delta (dB), and spectral centroid shift (Hz).

Duration delta–
Duration ratio (B/A)–
RMS delta (B − A)–
Centroid delta–
ZCR delta–
NaN check (A / B)–
Side-by-side acoustic metrics for Take A and Take B
Metric Take A Take B Delta (B − A)

3 · Inspect spectral centroid & delta math

Show the code · pico-core.mjs — computeSpectralCentroidHz() (1024-pt Hann FFT centroid)
Show the code · pico-core.mjs — compareTimbreAndRate() (duration, RMS & centroid delta)