marselnenaj/tiny-voca-de
CPU-first German conversational TTS with a compact ONNX model and two voices
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
tiny-voca-de is a 4,534,603-parameter German adaptation of tiny-voca. The Python front end normalizes text and uses eSpeak NG to produce phoneme IDs and stress markers. The model conditions synthesis on the selected voice and prosody controls, then builds a 24 kHz waveform from pitch, noise, and a learned filter. The base path does not run a second neural vocoder.
The same model is available as a PyTorch checkpoint or as an ONNX graph with a JSON sidecar. src/tiny_voca/export.py builds a single-sentence graph without padding or masks and expresses linear layers and Fourier transforms as matrix products for CPU execution. ONNX starts at the phoneme boundary, so deployments using it directly must supply their own text front end or reuse the Python one.
Key Capabilities & Differentiators
One checkpoint contains two designed German voices, DE-F and DE-M. The CLI and Python API split long input into sentences; direct ONNX calls accept a single sentence of up to 512 phonemes. The front end expands numbers, dates, times, units, and common abbreviations. Rate, pitch shift, and pitch range are adjustable. Adding a voice requires recordings and fine-tuning rather than a short reference clip at inference time.
On one desktop CPU with ONNX Runtime 1.32, the two voices reached 269–270× real time on four threads and 124× on one core, measured from text to finished waveform. Both scored 5.4% word error on Whisper small transcriptions of 30 held-out conversational sentences. The model files total 19.5 MB, excluding the phonemizer. The speed figures measure throughput, and the word-error figures are an intelligibility proxy, not a listening-test result.
Trade-offs & Limitations
Against the two tested Piper medium voices on the same desktop CPU, tiny-voca-de uses 19.5 MB for both voices versus 63.2 MB per Piper voice and delivers 269–270× versus 58–59× real time on four threads. The 30-sentence set is conversational and matches tiny-voca-de's training domain, so use it to shortlist models, not to infer a general quality ranking. English words receive German pronunciation; there is no streaming, instant cloning, or emotion control.
The base voice can buzz or sound metallic on phone speakers. The experimental 8 MB and 54 MB Vocos filters trade additional storage and CPU time for less metallic output; the smaller filter raised word errors in the separate PyTorch test. Listen on the intended speaker before enabling either filter. For distribution, review the GPL-3.0 eSpeak NG dependency separately from the Apache-2.0 project; moving phonemization to a Node.js process changes the integration boundary but does not settle licensing obligations.
Hardware & Deployment Guide
Use Python 3.10+ and pip install -e . for the local CLI or Python API; the manifest lists PyTorch, NumPy, and SoundFile. For ONNX Runtime, install .[onnx] and pair the .onnx file with its .json metadata. Fetch the base weights from v0.1.1 separately. The default eSpeak NG path runs in-process; the optional WASM path needs Node.js 20+ and npm install. Once assets and dependencies are installed, CPU synthesis can run offline.
v0.1.1 adds a machine-readable mark to generated audio. v0.1.2 leaves the speech weights unchanged and supplies experimental Vocos filters for PyTorch, with no ONNX export for those filters. For Android, use the separate Piper-format model and token file with SherpaTTS and sherpa-onnx 1.x. That route bypasses the Python normalizer, so check dates and abbreviations separately. Sherpa-onnx 2.x no longer bundles eSpeak NG and cannot take raw text with these files by itself.
scripts/check_onnx_de.py checks parity with PyTorch.DE-F and DE-M share one model and produce 24 kHz audio with rate, pitch shift, and pitch range controls; direct ONNX calls are limited to 512 phonemes per sentence.Offline German assistants, short conversational prompts, and CPU-only desktop tools that can work sentence by sentence with two fixed voices.
You need incremental audio streaming, multilingual pronunciation, instant voice cloning, or a managed voice API rather than a local synthesis runtime.
Quick Start & Installation
git clone https://github.com/marselnenaj/tiny-voca-de.git cd tiny-voca-de pip install -e . gh release download v0.1.1 --dir weights --pattern 'tiny-voca-de.*' # or get the files from the Releases page tiny-voca-speak --checkpoint weights/tiny-voca-de.pt --voice DE-F \ --text "Alles klar, ich mache die Schrift etwas größer. Gefällt dir das so?" --output hallo.wav
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| tiny-voca-de ★ | 105 | +12 | Python | Apache-2.0 | CPU-first German conversational TTS with a compact ONNX model and two voices |
| ChatTTS | 40.1k | +24 | Python | AGPL-3.0 | Local autoregressive TTS for expressive Chinese and English dialogue |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
| EmotiVoice | 8.5k | — | Python | Apache-2.0 | Self-hosted PyTorch TTS for prompt-controlled Chinese and English speech |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/marselnenaj/tiny-voca-de.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about tiny-voca-de
What does an application need to supply to the ONNX model?
tiny-voca-speak for WAV files or Python's load_model and speak_text for 24 kHz audio tensors. For direct ONNX Runtime integration, normalize and split the text, phonemize it with tiny_voca.text.phonemize, and pass token IDs, stress, voice index, and prosody controls to the graph. Each call accepts one sentence of up to 512 phonemes; it does not stream partial audio.Does the model need a GPU, and what does the 20 MB figure include?
espeakng-loader adds about 21 MB before accounting for the Python environment and runtime dependencies. Those are file sizes, not peak RAM measurements. Measure resident memory and latency with the thread count and concurrency you plan to deploy.Can I ship this commercially, and what should I check before distribution?
When is tiny-voca-de a better choice than Piper medium?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy