Downloads · 30 days
0
theoracleguy/pocket-tts-onnx
pocket-tts-onnx is a text-to-speech model from theoracleguy. Use it when you need text read aloud. It is set up for pocket-tts-onnx. The card lists the license as cc-by-4.0.
Optimized ONNX exports of Pocket TTS for high-speed, memory-efficient text-to-speech and zero-shot voice cloning on CPU, mobile, and edge runtimes.
Downloads · 30 days
0
Access
Public
Updated Sep 21, 2026
Repo size
11.7 GB
Likes
0
Public
Click a slice to open those files.
.onnx12.1 GB · 100%
From the Hugging Face model README
Optimized ONNX exports of Pocket TTS for high-speed, memory-efficient text-to-speech and zero-shot voice cloning on CPU, mobile, and edge runtimes.
Mirrored and validated from KevinAHM/pocket-tts-onnx at commit 58a6d00cf13d239b6748cb0769f35c580a8f606c.
This repository provides comprehensive support for both compact 6-layer models and high-capacity 24-layer models:
english_2026-04, german, italian, portuguese, spanish
french_24l, german_24l, italian_24l, portuguese_24l, spanish_24l
Each bundle directory in onnx/<language>/ provides complete standalone inference:
flow_lm_main.onnx & flow_lm_main_int8.onnx: Dual-split conditioning transformerflow_lm_flow.onnx & flow_lm_flow_int8.onnx: Flow matching ODE step modelmimi_decoder.onnx & mimi_decoder_int8.onnx: Neural audio codec decodermimi_encoder.onnx & mimi_encoder_int8.onnx: Voice prompt audio encodertext_conditioner.onnx & text_conditioner_int8.onnx: Text embedding conditionerbos_before_voice.npy: Beginning-of-sequence voice prompt vector (4,224 bytes)tokenizer.model: Language-specific SentencePiece modelbundle.json: Bundle configuration and predefined voice registrydownload_manifest.json: Per-bundle verification manifest with byte sizes and SHA-256 checksumsRoot-level convenience models under onnx/ are retained for backward compatibility with flat loaders.
pip install -r requirements.txt
from pocket_tts_onnx import PocketTTSOnnx
# Load English 6L bundle (INT8 quantization by default)
tts_en = PocketTTSOnnx(models_dir="onnx", language="english_2026-04", precision="int8")
audio = tts_en.generate("Hello world, this is a test of Pocket TTS ONNX.", voice="alba")
tts_en.save_audio(audio, "output_en.wav")
# Load French 24L bundle
tts_fr = PocketTTSOnnx(models_dir="onnx", language="french_24l", precision="int8")
audio_fr = tts_fr.generate("Bonjour tout le monde, ceci est un test.", voice="alba")
tts_fr.save_audio(audio_fr, "output_fr.wav")
python generate.py "Hello from Pocket TTS ONNX." alba output.wav --language english_2026-04
python generate.py "Bonjour le monde." alba output_fr.wav --language french_24l
A root repository_manifest.json lists every published artifact with its precise byte size and SHA-256 checksum for automated verification.
The Pocket TTS model weights and architecture are developed by Kyutai and licensed under Creative Commons Attribution 4.0 International (CC BY 4.0). Upstream ONNX conversions by KevinAHM.