Spaces:
Running
Running
Major Update: Kokoro-82M with 54 Premium Voices
#6
by
masbudjj - opened
README.md
CHANGED
|
@@ -1,79 +1,136 @@
|
|
| 1 |
---
|
| 2 |
-
title: TTS
|
| 3 |
emoji: ποΈ
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
|
|
|
|
|
|
| 7 |
pinned: false
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# ποΈ Text-to-Speech
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
|
| 13 |
-
Tidak perlu server Python, tidak ada biaya hosting!
|
| 14 |
|
| 15 |
-
##
|
| 16 |
|
| 17 |
-
|
| 18 |
-
- **
|
| 19 |
-
- **
|
| 20 |
-
- **
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
- **Speed Control** (0.5x - 2x) - Real-time playback speed adjustment
|
| 24 |
-
- **Temperature** (0.1 - 1.5) - Kontrol kreativitas output
|
| 25 |
-
- **Top P Sampling** (0.01 - 1.0) - Nucleus sampling untuk variasi natural
|
| 26 |
-
- **Top K** (0-50) - Token selection control
|
| 27 |
-
- **Repetition Penalty** (0.8 - 2.0) - Hindari pengulangan kata
|
| 28 |
-
- **Length Penalty** (0.1 - 2.0) - Kontrol panjang audio
|
| 29 |
-
- **Num Beams** (1-8) - Beam search untuk kualitas lebih baik
|
| 30 |
|
| 31 |
-
##
|
| 32 |
-
- Upload audio file untuk clone karakteristik suara
|
| 33 |
-
- Support semua format audio (MP3, WAV, M4A, dll)
|
| 34 |
-
- Processing otomatis speaker embeddings
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
- π± **Fully Responsive** - Works on mobile, tablet, desktop
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
| 47 |
-
2. Buka URL Space, tunggu model loading (pertama kali akan download ONNX weights)
|
| 48 |
-
3. **Pilih Model** dari dropdown di panel kanan
|
| 49 |
-
4. Ketik teks yang ingin diubah jadi suara
|
| 50 |
-
5. Klik **Generate**
|
| 51 |
-
6. Audio akan muncul dengan tombol **Download**
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
-
-
|
| 56 |
-
- Vanilla JavaScript (ES6 Modules)
|
| 57 |
-
- ONNX Runtime (WASM/WebGPU)
|
| 58 |
|
| 59 |
-
##
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
-
|
| 68 |
-
# Clone repository
|
| 69 |
-
git clone <your-repo-url>
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
# 3. Upload semua file atau connect Git repository
|
| 75 |
-
```
|
| 76 |
|
| 77 |
---
|
| 78 |
|
| 79 |
-
**
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Kokoro-82M TTS - 54 Premium Voices
|
| 3 |
emoji: ποΈ
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
+
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# ποΈ Kokoro-82M Text-to-Speech
|
| 14 |
+
|
| 15 |
+
**World-Class TTS with 54 Premium Voices**
|
| 16 |
+
|
| 17 |
+
## β¨ Features
|
| 18 |
+
|
| 19 |
+
### π 54 Premium Voices
|
| 20 |
+
|
| 21 |
+
#### πΊπΈ American English (19 voices)
|
| 22 |
+
**Female (11 voices):**
|
| 23 |
+
- Heart - Warm & Friendly
|
| 24 |
+
- Bella - Elegant & Smooth
|
| 25 |
+
- Nicole - Professional
|
| 26 |
+
- Aoede - Cheerful
|
| 27 |
+
- Kore - Gentle
|
| 28 |
+
- Sarah - Clear
|
| 29 |
+
- Nova - Modern
|
| 30 |
+
- Sky - Light
|
| 31 |
+
- Alloy - Versatile
|
| 32 |
+
- Jessica - Natural
|
| 33 |
+
- River - Calm
|
| 34 |
+
|
| 35 |
+
**Male (8 voices):**
|
| 36 |
+
- Michael - Deep & Authoritative
|
| 37 |
+
- Fenrir - Strong
|
| 38 |
+
- Puck - Playful
|
| 39 |
+
- Echo - Resonant
|
| 40 |
+
- Eric - Professional
|
| 41 |
+
- Liam - Friendly
|
| 42 |
+
- Onyx - Rich
|
| 43 |
+
- Adam - Natural
|
| 44 |
+
|
| 45 |
+
#### π¬π§ British English (8 voices)
|
| 46 |
+
**Female (4 voices):**
|
| 47 |
+
- Emma - Refined
|
| 48 |
+
- Isabella - Elegant
|
| 49 |
+
- Alice - Clear
|
| 50 |
+
- Lily - Soft
|
| 51 |
+
|
| 52 |
+
**Male (4 voices):**
|
| 53 |
+
- George - Distinguished
|
| 54 |
+
- Fable - Storyteller
|
| 55 |
+
- Lewis - Smooth
|
| 56 |
+
- Daniel - Professional
|
| 57 |
|
| 58 |
+
---
|
|
|
|
| 59 |
|
| 60 |
+
## ποΈ Model Architecture
|
| 61 |
|
| 62 |
+
**Kokoro-82M** based on **StyleTTS 2**:
|
| 63 |
+
- **Parameters**: 82 Million
|
| 64 |
+
- **Decoder**: ISTFTNet
|
| 65 |
+
- **Training**: Few hundred hours of permissive data
|
| 66 |
+
- **License**: Apache 2.0
|
| 67 |
+
- **Paper**: [StyleTTS 2 (arxiv.org/abs/2306.07691)](https://arxiv.org/abs/2306.07691)
|
| 68 |
|
| 69 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
+
## π― Features
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
+
β
**54 Unique Voices** - American & British accents
|
| 74 |
+
β
**Natural Prosody** - Human-like intonation
|
| 75 |
+
β
**Fast Generation** - 2-5 seconds per sentence
|
| 76 |
+
β
**Speed Control** - 0.5x to 2x playback
|
| 77 |
+
β
**High Quality** - StyleTTS 2 architecture
|
| 78 |
+
β
**Open Source** - Apache 2.0 license
|
|
|
|
| 79 |
|
| 80 |
+
---
|
| 81 |
|
| 82 |
+
## π» Technology Stack
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
+
- **Backend**: Gradio + Hugging Face Inference API
|
| 85 |
+
- **Model**: Kokoro-82M (hexgrad/Kokoro-82M)
|
| 86 |
+
- **Architecture**: StyleTTS 2 + ISTFTNet
|
| 87 |
+
- **Deployment**: Hugging Face Spaces
|
| 88 |
|
| 89 |
+
---
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
## π Usage
|
| 92 |
|
| 93 |
+
1. **Choose Voice** - Select from 54 premium voices
|
| 94 |
+
2. **Enter Text** - Type or paste your content
|
| 95 |
+
3. **Adjust Speed** - Control playback rate (0.5x - 2x)
|
| 96 |
+
4. **Generate** - Click to synthesize speech
|
| 97 |
+
5. **Download** - Save audio as WAV file
|
| 98 |
|
| 99 |
+
---
|
| 100 |
+
|
| 101 |
+
## π Comparison with Other Models
|
| 102 |
+
|
| 103 |
+
| Feature | Kokoro-82M | SpeechT5 | VITS |
|
| 104 |
+
|---------|-----------|----------|------|
|
| 105 |
+
| **Voices** | 54 | 1 | Variable |
|
| 106 |
+
| **Quality** | Excellent | Good | Good |
|
| 107 |
+
| **Speed** | Fast | Medium | Fast |
|
| 108 |
+
| **Accents** | US/UK | Generic | Variable |
|
| 109 |
+
| **License** | Apache 2.0 | Apache 2.0 | MIT |
|
| 110 |
+
|
| 111 |
+
---
|
| 112 |
+
|
| 113 |
+
## π Credits
|
| 114 |
+
|
| 115 |
+
- **Model**: [hexgrad/Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M)
|
| 116 |
+
- **Base Architecture**: StyleTTS 2 by Li et al.
|
| 117 |
+
- **Decoder**: ISTFTNet
|
| 118 |
+
- **Training**: Ethical permissive-licensed data only
|
| 119 |
+
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
## π License
|
| 123 |
+
|
| 124 |
+
Apache 2.0 - Free for commercial use
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
|
| 128 |
+
## π Links
|
|
|
|
|
|
|
| 129 |
|
| 130 |
+
- π [Model Card](https://huggingface.co/hexgrad/Kokoro-82M)
|
| 131 |
+
- π [StyleTTS 2 Paper](https://arxiv.org/abs/2306.07691)
|
| 132 |
+
- π [GitHub (ONNX)](https://github.com/thewh1teagle/kokoro-onnx)
|
|
|
|
|
|
|
| 133 |
|
| 134 |
---
|
| 135 |
|
| 136 |
+
**Built with β€οΈ using Kokoro-82M & Gradio**
|