Downloads · 30 days
0
rinaldow/piper-onnx-durations
piper-onnx-durations is a machine learning model from rinaldow. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Modified Piper TTS models with exposed duration tensors for temporal alignment.
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2026
Repo size
848 MB
Likes
0
Public
Click a slice to open those files.
.onnx848 MB · 100%
From the Hugging Face model README
Modified Piper TTS models with exposed duration tensors for temporal alignment.
| Output | Type | Description |
|---|---|---|
audio | Float32Array | Synthesized speech |
durations | Float32Array | Frame counts per token |
Durations are expressed in audio frames. To convert to milliseconds:
duration_ms = duration_frames × (hop_size / sample_rate) × 1000
Standard values:
hop_size: 256sample_rate: 22050 (medium models)The durations array corresponds to a token sequence that includes structural markers:
| ID | Type | Description |
|---|---|---|
| 0 | padding | Inter-token transitions |
| 1 | BOS | Beginning of sentence |
| 2 | EOS | End of sentence |
| 3 | space | Word boundary |
| 4+ | phoneme | Speech sounds |
The token sequence is typically longer than the input phoneme string due to inserted structural tokens.
Each model includes a .onnx.json file containing:
phoneme_id_map: Symbol-to-ID mappingsaudio.sample_rate: Sample rate for duration conversionBased on rhasspy/piper-voices.