Pocket TTS: CPU-Based Text-to-Speech with Voice Cloning
Pocket TTS delivers practical on-device speech synthesis that sidesteps GPU requirements and API costs. The ~200ms time-to-first-chunk and 6x real-time throughput are concrete numbers, not marketing — and the voice cloning via WAV prompt is genuinely useful for personalization. For developers who need TTS embedded in a desktop app, accessibility tool, or self-hosted service, this fits neatly without forcing a GPU or cloud dependency. Skip it if you need production-grade multi-speaker dialogue, very long-form narration with prosody control, or if your target hardware is memory-constrained — the model still needs to stay in RAM for responsive use.
What is Pocket TTS?
Pocket TTS is an open-weight text-to-speech model developed by Kyutai Labs that runs on standard CPU hardware. It is a 100M parameter model producing PCM audio via streaming chunks, with built-in support for voice cloning (you pass a WAV file or pick from a preset catalog) and six European languages. The project provides a Python library, a CLI for single-file generation, and a serve command that spins up a local web UI and HTTP API. It does not require the GPU build of PyTorch.
Core Capabilities of Pocket TTS
- ✓Runs entirely on CPU using standard PyTorch (no GPU build required) with only 2 cores utilized by default
- ✓Streams audio in ~200ms for the first chunk, reaching ~6x real-time throughput on an M4 MacBook Air
- ✓Voice cloning from any WAV file — pass audio to get_state_for_audio_prompt() and generate with that voice; export to safetensors for sub-second reloads
- ✓Six European languages supported (English, French, German, Portuguese, Italian, Spanish) with optional 24-layer model variants for non-English languages
- ✓Python API (TTSModel.load_model() + generate_audio()) plus CLI commands (generate, serve, export-voice) for immediate use
- ✓Handles infinitely long text inputs without chunking by the user — the model manages streaming internally
Where Pocket TTS Shines
- •Embedding TTS into desktop or CLI tools that need to read text aloud without internet access or GPU hardware
- •Voice cloning for accessibility applications where a user wants their own recorded voice as the TTS voice
- •Self-hosted HTTP API for lightweight services, using the serve command with a local web UI for quick testing
- •Generating audio for screen readers or reading assistants on hardware like Raspberry Pi or low-end laptops
- •Prototyping voice features in games or apps before committing to a cloud TTS provider
- •Creating localized audio content in any of the six supported languages without cloud API calls
Getting Started with Pocket TTS
Install via pip: `pip install pocket-tts` or add it to a project with `uv add pocket-tts`. Requires Python 3.10 through 3.14 and PyTorch 2.5+. The GPU build of PyTorch is not required — the regular CPU PyTorch package works. For development, clone the repo and run an editable install as described in CONTRIBUTING.md. On Apple Silicon (M-series chips), native ARM64 PyTorch wheels are used automatically.
Using Pocket TTS: CLI and Python API
CLI: `uvx pocket-tts generate --text "Hello world" --voice alba` outputs a WAV file with speed stats. Use `--language italian_24l` for higher-quality non-English variants. Run `uvx pocket-tts serve` to start a local HTTP server at http://localhost:8000 with a web interface for interactive testing. Python API: import TTSModel, call load_model(), pass a voice name or WAV path to get_state_for_audio_prompt(), then call generate_audio() with text — the result is a 1D torch tensor of PCM data you can write to a WAV file with scipy.io.wavfile. For repeated voice use, export the state to safetensors with export_model_state() for faster subsequent loads that bypass audio processing.
Strengths
- ✓No GPU required — runs on any machine with a standard CPU PyTorch installation
- ✓Voice cloning from any WAV file, not just a curated preset list
- ✓Very low latency (~200ms to first audio chunk) with streaming output
- ✓Minimal hardware footprint (2 CPU cores, 100M parameters)
- ✓Python API is straightforward — three method calls from load to audio output
- ✓MIT license allows commercial use with no attribution-heavy terms
Current Limitations and Considerations
- △Voice cloning inherits audio quality issues from the source file — the README explicitly recommends cleaning samples before use, and no denoising is built in
- △24-layer non-English variants are available but not installed by default; they are larger and slower without explicit --language selection
- △The serve command and Docker image do not expose a --device option — they always run on CPU even if a GPU is available
- △CPU is the sole environment for `int8 dynamic quantization` (with `quantize=True`); a CUDA-moved model will raise `NotImplementedError`.
- △No built-in silence/pause control in text input (acknowledged as a missing feature)
- △Production-grade prosody control, speaker diarization, and multi-speaker support are outside scope
Other Implementations and Ports
Frequently Asked Questions
Pocket TTS is a Python library at its core, callable from any language via its CLI (which wraps the Python logic) or by running the serve command and making HTTP requests. Third-party ports exist for C++, C#, Rust, Go, Java, and JavaScript via ONNX Runtime or MLX backends.
Python 3.10-3.14 with PyTorch 2.5+ (CPU-only build is sufficient). The model uses 2 CPU cores and fits in RAM on any modern laptop or desktop. No GPU is required, though a CUDA GPU can provide a ~2.6x speedup on cloud VMs like a Tesla T4 if you move the model manually.
Yes. Pass any WAV or MP3 file to get_state_for_audio_prompt() and Pocket TTS will generate speech in that voice. For faster repeated use, export the processed voice state to a safetensors file with export_model_state() — loading it back is nearly instant as it skips audio processing.
Six languages are supported out of the box: English, French, German, Portuguese, Italian, and Spanish. Non-English languages also have 24-layer model variants selectable via --language (e.g., --language italian_24l) that offer higher quality at the cost of slower inference.
Pocket TTS is distributed under the MIT license, which permits commercial use, modification, and redistribution with no mandatory royalties or attribution requirements. You must comply with all applicable laws and the prohibited use terms in the README (no unauthorized voice impersonation or deepfakes).
It is not officially supported, but you can move the model to CUDA manually since TTSModel is a standard nn.Module. On a Tesla T4 cloud VM this gave roughly a 2.6x speedup over CPU. On Apple Silicon hardware with strong single-thread CPU performance, no GPU speedup was observed. The quantize=True option only works on CPU.
The problem it solves
Cloud TTS APIs lock you into per-character billing, require internet connectivity, and introduce latency from network round-trips. Running larger open-weight TTS models (billions of parameters) demands GPU hardware that most development machines lack, and quantization workarounds introduce quality trade-offs or complex tooling. Developers who want offline, on-device speech synthesis have had few options that balance model size, latency, and a usable API surface — Pocket TTS attacks that gap directly.
Who should try it — and who should skip
Reach for Pocket TTS if you want offline speech synthesis embedded in a Python app, CLI tool, or self-hosted service without committing to a GPU or cloud API, and if voice cloning from a custom WAV sample adds value to your use case. It is well-suited for developers on Apple Silicon laptops, low-power hardware, or privacy-constrained environments. Skip it if you need production-grade prosody shaping, multi-speaker dialogues, integration with embedded systems outside the documented ports, or if you are already committed to a cloud TTS provider for quality reasons and just need a cheaper fallback.
Is pocket-tts worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of pocket-tts.
