Instructions to use vvolhejn/pocket-tts-czech with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pocket-TTS
How to use vvolhejn/pocket-tts-czech with Pocket-TTS:
from pocket_tts import TTSModel import scipy.io.wavfile tts_model = TTSModel.load_model("vvolhejn/pocket-tts-czech") voice_state = tts_model.get_state_for_audio_prompt( "hf://kyutai/tts-voices/alba-mackenna/casual.wav" ) audio = tts_model.generate_audio(voice_state, "Hello world, this is a test.") # Audio is a 1D torch tensor containing PCM data. scipy.io.wavfile.write("output.wav", tts_model.sample_rate, audio.numpy()) - Notebooks
- Google Colab
- Kaggle
Pocket TTS — Czech (6 layers)
A Czech voice-cloning TTS model for Pocket TTS. Six transformer layers, runs faster than realtime on CPU.
Usage
uvx pocket-tts generate \
--config hf://vvolhejn/pocket-tts-czech/czech.yaml@7c1fbd0acba765617749dd17f3dbddc2be791cc7 \
--voice your_voice.wav \
--text "Dobrý den, toto je český model."
The voice must be an audio file (or a state exported with pocket-tts export-voice
from these weights). The named catalog voices — alba, cosette, … — are
conditioning states precomputed with the released English weights and will not work here.
Sample voices cut from held-out ParCzech speakers are in voices/:
uvx pocket-tts generate \
--config hf://vvolhejn/pocket-tts-czech/czech.yaml@7c1fbd0acba765617749dd17f3dbddc2be791cc7 \
--voice https://huggingface.co/vvolhejn/pocket-tts-czech/resolve/main/voices/cs_m_zenisek.wav \
--text "Dobrý den, toto je český model."
Training
| corpus | ParCzech4Speech (Czech parliamentary speech, CC-BY 4.0) |
| training data | 976 h, 547,597 utterances, 524 speakers |
| tokenizer | sentencepiece fitted on the ParCzech transcripts, vocab 3999 |
| teacher | 24 layers, LSD from scratch, 250k steps, lr 2e-4 constant, flow_batch_multiplier 4 |
| student | 6 layers, depth-distilled from the teacher's EMA weights, 100k steps, lr 4e-4 cosine, distill_cfg_coef 2.0 |
| weights | EMA (decay 0.9999) |
| recommended | --temperature 0.3, cfg 1 (the default; guidance is baked into the student) |
Trained with the Pocket TTS training code, following the non-English recipe.
Evaluation
The Pocket TTS eval pipeline (WER / speaker similarity / UTMOS) is English-only, so no comparable numbers are reported here.
Limitations
Parliamentary speech is the whole training distribution: formal, adult, mostly male speakers, read/spoken in a plenary setting. Expect the model to be weaker on conversational speech, children's voices, and text formatted unlike parliamentary transcripts (the tokenizer is case- and punctuation-sensitive).
License
Weights: CC-BY 4.0. Derived from ParCzech4Speech (CC-BY 4.0) — attribution to the ÚFAL, Charles University corpus authors.
- Downloads last month
- -