Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -13,15 +13,15 @@ tags:
|
|
| 13 |
pipeline_tag: text-to-speech
|
| 14 |
---
|
| 15 |
|
| 16 |
-
# Kokoro Grounded Documentary Voiceover Model
|
| 17 |
|
| 18 |
-
A broadcast-grade text-to-speech engine powered by **Kokoro-ONNX**, featuring the **Grounded Documentary** voice profile (
|
| 19 |
|
| 20 |
-
|
| 21 |
-
1. **
|
| 22 |
-
2. **
|
| 23 |
-
3. **
|
| 24 |
-
4. **
|
| 25 |
|
| 26 |
---
|
| 27 |
|
|
@@ -53,10 +53,10 @@ text = "Look up at the night sky... To you, it might look like an endless ocean
|
|
| 53 |
audio, sr = kokoro.create(
|
| 54 |
text,
|
| 55 |
voice=voice_style,
|
| 56 |
-
speed=0.
|
| 57 |
lang="en-gb",
|
| 58 |
-
sentence_pause=0.
|
| 59 |
-
clause_pause=0.
|
| 60 |
)
|
| 61 |
|
| 62 |
sf.write("output.wav", audio, sr)
|
|
@@ -65,23 +65,21 @@ print(f"Generated {len(audio)/sr:.2f}s of broadcast narration!")
|
|
| 65 |
|
| 66 |
---
|
| 67 |
|
| 68 |
-
## Broadcast Mastering Chain (FFmpeg)
|
| 69 |
|
| 70 |
-
For broadcast-grade warmth and smooth de-essing matching YouTube documentary standards:
|
| 71 |
|
| 72 |
```bash
|
| 73 |
ffmpeg -y -i output.wav -af \
|
| 74 |
-
"highpass=f=
|
| 75 |
-
equalizer=f=
|
| 76 |
-
equalizer=f=
|
| 77 |
-
equalizer=f=
|
| 78 |
-
equalizer=f=3200:t=q:w=2.0:g=-1.6,\
|
| 79 |
-
equalizer=f=5800:t=q:w=2.5:g=-3.5,\
|
| 80 |
equalizer=f=7200:t=q:w=2.5:g=-3.0,\
|
| 81 |
lowpass=f=11000,\
|
| 82 |
-
deesser=i=0.
|
| 83 |
-
compand=attacks=0.
|
| 84 |
-
loudnorm=I=-16:TP=-1.5:LRA=
|
| 85 |
-c:a libmp3lame -b:a 192k output_mastered.mp3
|
| 86 |
```
|
| 87 |
|
|
@@ -91,4 +89,6 @@ ffmpeg -y -i output.wav -af \
|
|
| 91 |
* `kokoro-v1.0.onnx`: Kokoro ONNX model weights (310 MB).
|
| 92 |
* `voices-v1.0.bin`: Kokoro voice library (27 MB).
|
| 93 |
* `grounded_documentary.npy`: Pre-blended float32 voice embedding vector (510 KB).
|
| 94 |
-
* `narrator.py`:
|
|
|
|
|
|
|
|
|
| 13 |
pipeline_tag: text-to-speech
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# Kokoro Grounded Documentary Voiceover Model (v2.0)
|
| 17 |
|
| 18 |
+
A broadcast-grade text-to-speech engine powered by **Kokoro-ONNX**, featuring the **Grounded Documentary v2.0** voice profile (60% `bm_george` + 25% `bm_lewis` + 15% `bm_daniel`, British RP).
|
| 19 |
|
| 20 |
+
Calibrated based on multimodal acoustic analysis for prestigious documentary, philosophical, and cosmological narration:
|
| 21 |
+
1. **Calibrated Baritone Tone**: Blends `bm_lewis` with `bm_george` to infuse authoritative sub-chest warmth and remove upper-mid nasal fatigue.
|
| 22 |
+
2. **Contemplative Sage Pacing**: Unhurried speed (`0.91`), meditative sentence pauses (`0.65s`), clause pauses (`0.30s`), and extended pauses (`1.1s–1.3s`) across major thematic transitions.
|
| 23 |
+
3. **Vedic & Sanskrit Pronunciation Lexicon**: Built-in phonetic dictionary (`pronunciation.py`) accurately pronouncing ancient Sanskrit and mythological terms (e.g., *Rsis*, *Ekam Sat*, *Nasadiya Sukta*, *Yajnavalkya*, *Rta*, *Brahman*, *Atman*).
|
| 24 |
+
4. **Broadcast Mastering Filter**: Single-pass FFmpeg chain featuring optical-style soft-knee compression, surgical de-essing, boxiness notch, and EBU R128 (-16 LUFS) loudness normalization.
|
| 25 |
|
| 26 |
---
|
| 27 |
|
|
|
|
| 53 |
audio, sr = kokoro.create(
|
| 54 |
text,
|
| 55 |
voice=voice_style,
|
| 56 |
+
speed=0.91,
|
| 57 |
lang="en-gb",
|
| 58 |
+
sentence_pause=0.65,
|
| 59 |
+
clause_pause=0.30
|
| 60 |
)
|
| 61 |
|
| 62 |
sf.write("output.wav", audio, sr)
|
|
|
|
| 65 |
|
| 66 |
---
|
| 67 |
|
| 68 |
+
## Gemini-Calibrated Broadcast Mastering Chain (FFmpeg)
|
| 69 |
|
| 70 |
+
For broadcast-grade warmth, optical-style compression, and smooth de-essing matching YouTube documentary standards:
|
| 71 |
|
| 72 |
```bash
|
| 73 |
ffmpeg -y -i output.wav -af \
|
| 74 |
+
"highpass=f=75:p=2,\
|
| 75 |
+
equalizer=f=180:t=q:w=1.2:g=3.2,\
|
| 76 |
+
equalizer=f=480:t=q:w=2.0:g=-1.8,\
|
| 77 |
+
equalizer=f=3200:t=q:w=1.5:g=1.2,\
|
|
|
|
|
|
|
| 78 |
equalizer=f=7200:t=q:w=2.5:g=-3.0,\
|
| 79 |
lowpass=f=11000,\
|
| 80 |
+
deesser=i=0.7:m=0.5:f=0.65:s=o,\
|
| 81 |
+
compand=attacks=0.02:decays=0.25:points=-70/-70|-45/-32|-20/-14|0/-6:soft-knee=6,\
|
| 82 |
+
loudnorm=I=-16:TP=-1.5:LRA=9" \
|
| 83 |
-c:a libmp3lame -b:a 192k output_mastered.mp3
|
| 84 |
```
|
| 85 |
|
|
|
|
| 89 |
* `kokoro-v1.0.onnx`: Kokoro ONNX model weights (310 MB).
|
| 90 |
* `voices-v1.0.bin`: Kokoro voice library (27 MB).
|
| 91 |
* `grounded_documentary.npy`: Pre-blended float32 voice embedding vector (510 KB).
|
| 92 |
+
* `narrator.py`: Voiceover narrator class with built-in mastering chain.
|
| 93 |
+
* `pronunciation.py`: Vedic, Sanskrit, and ancient term phonetic lexicon.
|
| 94 |
+
|