pockettts-de-kyutai-unicode
A Pocket TTS model by Kyutai, from kyutai/pocket-tts/languages/german, packaged for phoonnx, our ONNX text-to-speech library.
Model details
| Architecture | Pocket TTS |
| Upstream | kyutai/pocket-tts/languages/german |
| ONNX conversion | KevinAHM/pocket-tts-onnx/onnx/german |
| Author | Kyutai |
| Languages | de |
| Text input | Unicode codepoints of the text |
Size and speed
| Precision | Files | Size | Peak memory | Real-time factor |
|---|---|---|---|---|
| fp32 | flow_lm_main.onnx, text_conditioner.onnx, flow_lm_flow.onnx, mimi_decoder.onnx, mimi_encoder.onnx | 439.5 MB | 899 MiB | 0.337 |
| int8 | flow_lm_main_int8.onnx, text_conditioner.onnx, flow_lm_flow_int8.onnx, mimi_decoder_int8.onnx, mimi_encoder.onnx | 165.1 MB | 630 MiB | 0.198 |
The int8 files come from the upstream release. The int8 voice keeps text_conditioner.onnx and mimi_encoder.onnx in fp32, as the phoonnx voice does. The int8 voice passed the check against the fp32 voice. A speech recognizer heard the 5 check sentences with a word error rate of 0.195 from the int8 voice, and 0.220 and 0.220 from two fp32 runs.
Peak memory is the peak resident memory of a new process that loads the voice and says one sentence. The real-time factor is the synthesis time divided by the audio length, the median of 3 runs. A lower value is faster. Measured on an AMD Ryzen 5 7600 CPU with 4 threads.
How to use
pip install --pre phoonnx
import wave
from phoonnx.model_manager import TTSModelManager
manager = TTSModelManager()
manager.load()
manager.merge_default_voices()
voice = manager.voices["pockettts/de/alba"].load()
with wave.open("output.wav", "wb") as wav_file:
text = "..." # a sentence in de
voice.synthesize_wav(text, wav_file)
In OVOS, phoonnx installs the ovos-tts-plugin-phoonnx plugin. Select the voice in mycroft.conf:
{"tts": {"module": "ovos-tts-plugin-phoonnx", "ovos-tts-plugin-phoonnx": {"voice": "pockettts/de/alba"}}}
Text front end
phoonnx hands the text to scriptconv, our text conversion library, which normalises it and turns it into the model's input:
unicode:UnicodeCodepointPhonemizerfromscriptconv.phonemizers.base, in scriptconv itself.
phoonnx voices
pockettts/de/albapockettts/de/annapockettts/de/azelmapockettts/de/bill_boerstpockettts/de/caro_davypockettts/de/charlespockettts/de/cosettepockettts/de/eponinepockettts/de/estellepockettts/de/evepockettts/de/fantinepockettts/de/georgepockettts/de/giovannipockettts/de/janepockettts/de/javertpockettts/de/jeanpockettts/de/juergenpockettts/de/lolapockettts/de/mariuspockettts/de/marypockettts/de/michaelpockettts/de/paulpockettts/de/peter_yearsleypockettts/de/rafaelpockettts/de/stuart_bellpockettts/de/vera
Licence
The upstream declares the licence cc-by-4.0 in the model card of kyutai/pocket-tts.
Related projects
- phoonnx: runs this model, in Python and in OVOS.
- scriptconv: text normalisation, script conversion and phonemizers for phoonnx.
- The Pocket TTS collection: every Pocket TTS model packaged for phoonnx.