ComfyUI-Pocket-TTS
Lightweight CPU-based Text-to-Speech for ComfyUI
ComfyUI-Pocket-TTS ๐๏ธ
Lightweight CPU-based Text-to-Speech for ComfyUI
Fast, efficient TTS running at 6x real-time on CPU without GPU requirements. Perfect for quick voice generation and prototyping!
โจ Features
- ๐ Fast: ~200ms latency, 6x real-time on CPU
- ๐ป CPU Only: No GPU needed (works on laptops!)
- ๐ฏ Small Model: Only 100M parameters
- ๐ญ 8 Built-in Voices: Ready to use
- ๐ Voice Cloning: Use any audio file
- ๐ Long Text: Handles infinitely long inputs
- โก Low Memory: Uses only 2 CPU cores
๐ฆ Installation
Method 1: ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Search for "Simple Pocket TTS"
- Click Install
- Restart ComfyUI
Method 2: Manual Install
cd ComfyUI/custom_nodes
git clone https://github.com/ai-joe-git/ComfyUI-Pocket-TTS
cd ComfyUI-Pocket-TTS
pip install -r requirements.txt
๐ฎ Nodes
1. ๐๏ธ Pocket TTS (Simple)
All-in-one node for quick TTS
- Input: Text + Voice
- Output: Audio
- Auto-loads model, no setup needed
2. ๐๏ธ Pocket TTS Model Loader
Load model with specific settings
- Precision: float32/float16/bfloat16
- Outputs model for other nodes
3. ๐๏ธ Pocket TTS Generate
Generate speech with built-in voices
- 8 voices: alba, marius, javert, jean, fantine, cosette, eponine, azelma
- Fast generation
4. ๐๏ธ Pocket TTS Voice Clone
Clone voice from audio file
- Upload reference audio to
ComfyUI/input/ - Generates speech in that voice
๐ญ Built-in Voices
| Voice | Description | |-------|-------------| | alba | Alba Mackenna (default) | | marius | Marius Pontmercy | | javert | Inspector Javert | | jean | Jean Valjean | | fantine | Fantine | | cosette | Cosette | | eponine | Eponine | | azelma | Azelma |
๐ง Usage Examples
Basic Usage (Simple Node)
Text: "Hello world, this is a test."
Voice: alba
โ Audio Output
Voice Cloning
- Place audio file in
ComfyUI/input/my_voice.wav - Use Pocket TTS Voice Clone node
- Select
my_voice.wav - Enter text
- Get audio in your voice!
Advanced (Model Loader)
[Model Loader] โ [Generate] โ [Audio Output]
precision: float32
voice: marius
text: "Your text here"
โก Performance
Tested on MacBook Air M4:
| Metric | Value | |--------|-------| | Latency | ~200ms first chunk | | Speed | 6x real-time | | CPU Cores | 2 cores | | Model Size | 100M params | | Memory | ~400MB RAM |
๐ Workflow Integration
Works with:
- โ Video Helper Suite - Save audio
- โ Audio Processing Nodes - Effects/mixing
- โ Batch Processing - Multiple voices
- โ Animation Workflows - Lip sync
๐ Troubleshooting
โ "No module named 'pocket_tts'"
# In ComfyUI venv:
pip install pocket-tts
โ "No audio files found"
Place audio files in:
ComfyUI/input/
Supported: .wav, .mp3, .flac, .ogg
โ ๏ธ Slow generation
- Use
float32precision (fastest on CPU) - Close other applications
- Check CPU isn't throttling
๐ Comparison
| Feature | Pocket TTS | Other TTS | |---------|-----------|-----------| | Device | CPU only | GPU required | | Speed | 6x RT | 2-4x RT | | Latency | 200ms | 500ms+ | | Model Size | 100M | 1B+ | | Setup | 1-click | Complex |
๐ Credits
- Pocket TTS: Kyutai Labs
- Paper: Pocket TTS Research
- ComfyUI Node: ai-joe-git
๐ License
MIT License
๐ Updates
v1.0.0 (2026-01-25)
- Initial release
- 4 nodes
- 8 built-in voices
- Voice cloning support
- CPU-optimized
๐ค Contributing
PRs welcome! Areas for improvement:
- [ ] WebAssembly support
- [ ] Quantization (int8)
- [ ] More voices
- [ ] Streaming output
โ ๏ธ Prohibited Use
Voice cloning requires explicit consent. Do not use for:
- โ Voice impersonation without consent
- โ Misinformation/fake news
- โ Harassment or hate speech
- โ Privacy violations
See Pocket TTS license for full terms.
Made with โค๏ธ for the ComfyUI community