Instructions to use thatguy2049/rocky-voice with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pocket-TTS
How to use thatguy2049/rocky-voice with Pocket-TTS:
from pocket_tts import TTSModel import scipy.io.wavfile tts_model = TTSModel.load_model("thatguy2049/rocky-voice") 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
Download bundle.json from thatguy2049/rocky-voice: direct link, hf CLI and curl.
- Browser
- Download file 11 kB
-
https://huggingface.co/thatguy2049/rocky-voice/resolve/main/bundle.json
- Command line
-
hf download hf://thatguy2049/rocky-voice/bundle.json
-
curl -L -o bundle.json https://huggingface.co/thatguy2049/rocky-voice/resolve/main/bundle.json
11 kB
| { | |
| "model": "english_7m_2026-10", | |
| "pocketTts": "4.0.1", | |
| "sampleRate": 24000, | |
| "frameSamples": 1920, | |
| "dim": 224, | |
| "latent": 32, | |
| "temperature": 0.3, | |
| "eosThreshold": -1.0, | |
| "minFramesBeforeEos": 6, | |
| "tokensPerSecond": 3.0, | |
| "paddingSeconds": 2.0, | |
| "framesAfterEos": null, | |
| "text": { | |
| "padShort": false, | |
| "removeSemicolons": false, | |
| "endWithPunctuation": true, | |
| "capitalise": true, | |
| "replace": { | |
| "–": ",", | |
| "—": ",", | |
| "’": "'", | |
| "‘": "'" | |
| } | |
| }, | |
| "lm": { | |
| "state": [ | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 2, | |
| 64 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| } | |
| ] | |
| }, | |
| "decoder": { | |
| "state": [ | |
| { | |
| "shape": [ | |
| 1, | |
| 128, | |
| 2 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 128, | |
| 6 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 128, | |
| 2 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 64, | |
| 5 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 64, | |
| 2 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 32, | |
| 4 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 32, | |
| 2 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 32, | |
| 2 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 0, | |
| 4, | |
| 32 | |
| ], | |
| "type": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 1 | |
| ], | |
| "type": "int64" | |
| }, | |
| { | |
| "shape": [ | |
| 1, | |
| 128, | |
| 16 | |
| ], | |
| "type": "float32" | |
| } | |
| ] | |
| }, | |
| "voices": { | |
| "rocky": { | |
| "clips": [ | |
| "rocky-1.mp3", | |
| "rocky-3.mp3" | |
| ], | |
| "seconds": 7.2, | |
| "frames": 90 | |
| } | |
| }, | |
| "largestDifferenceFromTorch": { | |
| "latents": 0.0042, | |
| "eos": 0.0019, | |
| "audio": 0.0097 | |
| }, | |
| "tokens": { | |
| "Hello world.": [ | |
| 2994, | |
| 578, | |
| 263 | |
| ], | |
| " Hi.": [ | |
| 260, | |
| 260, | |
| 260, | |
| 260, | |
| 260, | |
| 260, | |
| 260, | |
| 260, | |
| 1445, | |
| 263 | |
| ], | |
| "Rahman builds AI systems. Very good engineer.": [ | |
| 1213, | |
| 506, | |
| 778, | |
| 779, | |
| 261, | |
| 3302, | |
| 260, | |
| 848, | |
| 261, | |
| 263, | |
| 2864, | |
| 395, | |
| 260, | |
| 1826, | |
| 295, | |
| 263 | |
| ], | |
| "Fist my bump!": [ | |
| 496, | |
| 667, | |
| 313, | |
| 842, | |
| 1255, | |
| 682 | |
| ], | |
| "It costs $5.50, question?": [ | |
| 333, | |
| 1649, | |
| 261, | |
| 1124, | |
| 437, | |
| 263, | |
| 437, | |
| 316, | |
| 262, | |
| 606, | |
| 363, | |
| 292 | |
| ], | |
| "naïve café, “quoted”, 480 by 270.": [ | |
| 913, | |
| 199, | |
| 179, | |
| 314, | |
| 331, | |
| 2250, | |
| 745, | |
| 262, | |
| 260, | |
| 230, | |
| 132, | |
| 160, | |
| 1431, | |
| 1025, | |
| 278, | |
| 230, | |
| 132, | |
| 161, | |
| 262, | |
| 260, | |
| 487, | |
| 547, | |
| 316, | |
| 378, | |
| 260, | |
| 365, | |
| 579, | |
| 316, | |
| 263 | |
| ], | |
| "Don't stop\tnow: RAG, LLMs & e-mail @ 3am…": [ | |
| 1201, | |
| 264, | |
| 274, | |
| 260, | |
| 1079, | |
| 13, | |
| 306, | |
| 1080, | |
| 3244, | |
| 769, | |
| 637, | |
| 1330, | |
| 262, | |
| 963, | |
| 1171, | |
| 864, | |
| 261, | |
| 260, | |
| 3377, | |
| 402, | |
| 337, | |
| 3270, | |
| 260, | |
| 68, | |
| 260, | |
| 450, | |
| 861, | |
| 230, | |
| 132, | |
| 170 | |
| ] | |
| }, | |
| "bytes": { | |
| "bundle.json": 11037, | |
| "decoder.onnx": 11197785, | |
| "decoder.q8.onnx": 5659412, | |
| "lm.onnx": 17317552, | |
| "lm.q8.onnx": 5635091, | |
| "tokenizer.json": 86807, | |
| "voices/rocky.bin": 81536 | |
| } | |
| } | |