Spaces:
Runtime error
Runtime error
File size: 2,861 Bytes
be04c81 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
---
title: KittenTTS - High Quality Text-to-Speech
emoji: π€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.41.1
app_file: app_minimal.py
pinned: false
license: mit
---
# π€ KittenTTS - High Quality Text-to-Speech
A Hugging Face Space showcasing the KittenTTS model for high-quality text-to-speech generation.
## π Features
- **8 Different Voices**: 4 male and 4 female voices to choose from
- **High Quality Audio**: 24kHz sample rate for crisp, clear speech
- **GPU-Free**: Works without requiring a GPU
- **Easy-to-Use Interface**: Simple and intuitive Gradio web interface
- **Real-time Generation**: Fast speech synthesis with progress tracking
## π΅ Available Voices
| Voice ID | Gender | Description |
|----------|--------|-------------|
| `expr-voice-2-m` | Male | Male voice variant 2 |
| `expr-voice-2-f` | Female | Female voice variant 2 |
| `expr-voice-3-m` | Male | Male voice variant 3 |
| `expr-voice-3-f` | Female | Female voice variant 3 |
| `expr-voice-4-m` | Male | Male voice variant 4 |
| `expr-voice-4-f` | Female | Female voice variant 4 |
| `expr-voice-5-m` | Male | Male voice variant 5 |
| `expr-voice-5-f` | Female | Female voice variant 5 |
## π οΈ Usage
1. **Enter Text**: Type or paste your text in the input box
2. **Select Voice**: Choose from the dropdown menu of available voices
3. **Generate**: Click the "Generate Speech" button or press Enter
4. **Download**: Play the generated audio or download it
## π» Technical Details
- **Model**: [KittenML/kitten-tts-nano-0.1](https://huggingface.co/KittenML/kitten-tts-nano-0.1)
- **Sample Rate**: 24kHz
- **Framework**: KittenTTS
- **Interface**: Gradio
- **Audio Format**: WAV (24kHz, mono)
## π§ Local Development
To run this locally:
```bash
# Clone the repository
git clone <your-repo-url>
cd <your-repo-name>
# Install dependencies
pip install -r requirements.txt
# Run the application
python app.py
```
## π¦ Dependencies
- `gradio>=4.0.0` - Web interface
- `kittentts` - TTS framework
- `soundfile` - Audio file handling
- `numpy` - Numerical operations
- `torch` - PyTorch backend
- `torchaudio` - Audio processing
- `transformers` - Hugging Face transformers
- `accelerate` - Model acceleration
## π€ Contributing
Feel free to contribute by:
- Reporting bugs
- Suggesting new features
- Improving the UI
- Adding more voice options
## π License
This project uses the KittenTTS model. Please refer to the original model's license for usage terms.
## π Acknowledgments
- [KittenML](https://huggingface.co/KittenML) for the TTS model
- [Hugging Face](https://huggingface.co) for the Spaces platform
- [Gradio](https://gradio.app) for the web interface framework
---
**Note**: This is a demonstration of the KittenTTS model. For production use, please ensure compliance with the model's license and terms of use. |