A hands-on lab for running and comparing local speech models in both directions — text to speech (TTS) and speech to text (STT) — in English and Latin American Spanish, with a shared web UI and a reproducible benchmark.
| Direction | Provider / model | Runs on |
|---|---|---|
| TTS | Kokoro-82M | local GPU (CUDA) or CPU |
| STT | Cactus Needle / Whistle | local |
Measured on 2026-11-26 on an AMD Ryzen 9 5900X with an RTX 3080 Ti, 10 FLEURS-R clips (5 per language), median of 3 timed runs after a warm-up. Lower is better for every column. Whistle always runs on the CPU; Kokoro was measured on both. Full method, per-clip results and error analysis: docs/benchmarks.md.
| Scenario | Language | WER | CER | Real-time factor |
|---|---|---|---|---|
| STT · Whistle, CPU | English | 3.5% | 3.1% | 0.054 (≈19× real time) |
| STT · Whistle, CPU | Spanish | 12.7% | 4.6% | 0.057 (≈18× real time) |
TTS · Kokoro af_heart, GPU (round-trip WER) |
English | 4.4% | 1.6% | 0.015 (≈66× real time) |
TTS · Kokoro ef_dora, GPU (round-trip WER) |
Spanish | 4.6% | 1.2% | 0.013 (≈75× real time) |
TTS · Kokoro af_heart, CPU only |
English | 7.7% | 2.4% | 0.158 (≈6× real time) |
TTS · Kokoro ef_dora, CPU only |
Spanish | 6.1% | 1.4% | 0.161 (≈6× real time) |
Round-trip WER means the generated audio is transcribed back by Whistle and scored against the input text: an automatic intelligibility proxy, not a listening test.
Disclaimer: Speech Lab is a personal lab for learning and experimentation. Ten clips are not a statistically representative evaluation; read the numbers as a reproducible smoke benchmark, not as a model ranking or a production recommendation.
./run.sh # web UI: Text to speech and Speech to text tabs
cd web-app
uv run python benchmark.py # re-run the benchmark (raw JSON goes to results/, not committed)
uv run python benchmark.py --cpu # same, with Kokoro forced onto the CPU
uv run python -m unittest discover -s tests -vSetup, requirements (FFmpeg, optional espeak-ng) and cleanup are in the
web interface README; ./cleanup.sh removes the local
environment and, on request, the model caches.
web-app/— the Gradio UI, one isolated adapter per provider underproviders/, the benchmark runner (benchmark.py) and its scoring (benchmark_metrics.py), and tests.samples/— the ten fixed FLEURS-R clips and reference transcripts, with provenance and attribution (CC BY 4.0).docs/benchmarks.md— measured runs and method.
See AGENTS.md for contribution and safety rules.
Code: MIT. Sample audio and transcripts: CC BY 4.0, from Google's FLEURS-R — see samples/README.md.