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
Rocky's voice
The voice of Rocky, the guide in the pixel-art room on Rahman Nurudin's portfolio. It runs in the visitor's
browser with onnxruntime-web, on the CPU, with no server.
What is here
| File | What |
|---|---|
lm.onnx |
Kyutai's Pocket TTS english_7m_2026-10 language model, exported to ONNX (float32). It writes speech as 80 ms latent frames |
decoder.onnx |
The same model's Mimi decoder, exported to ONNX (float32). Turns frames into 24 kHz audio |
tokenizer.json |
The model's SentencePiece vocabulary as JSON, for a tokenizer written in TypeScript |
bundle.json |
Sample rate, temperature, end-of-speech threshold, text rules and state shapes the page needs |
voices/rocky.bin |
The voice: 90 frames of latents projected for this model, float32 |
The voice encoder is not here. The voice was encoded once, from two short recordings of Rahman's own voice, and only the result is published. The recordings are not.
Consent
The voice is Rahman Nurudin's own, recorded by him and published by him for this purpose. Do not use it to imitate him.
How it was made
The export script, the engine that runs these files in a browser, and the measurements are in the
portfolio's repository (ai/rocky/clone/export.py, lib/voice.ts, lib/pocket.ts,
ROCKY_VOICE_REPORT.md). The ONNX graphs reproduce Kyutai's PyTorch code to within 0.0002 on audio given
the same noise. The voice latents match those from Kyutai's official encoder to within 0.012 on a scale of
7.4.
Licence and credit
The model weights are Kyutai's Pocket TTS (https://huggingface.co/kyutai/pocket-tts), released under CC-BY-4.0, converted to ONNX here without retraining. This repository is under the same licence.
Model tree for thatguy2049/rocky-voice
Base model
kyutai/pocket-tts