Backward compatible KModel.Output and KPipeline.Result dataclasses (#40)

* Backward compatible KModel.Output and KPipeline.Result dataclasses

* Typo: Bool => bool

* Allow voice=None for quiet pipelines

* Specify class names

* Fixed and tested

* Update README.md
This commit is contained in:
hexgrad
2025-02-02 11:05:25 -08:00
committed by GitHub
parent 0abd867239
commit 2f4d94bba2
5 changed files with 69 additions and 28 deletions

View File

@@ -8,7 +8,7 @@ An inference library for [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M)
You can run this cell on [Google Colab](https://colab.research.google.com/). [Listen to samples](https://huggingface.co/hexgrad/Kokoro-82M/blob/main/SAMPLES.md).
```py
# 1⃣ Install kokoro
!pip install -q kokoro>=0.3.1 soundfile
!pip install -q kokoro>=0.3.5 soundfile
# 2⃣ Install espeak, used for English OOD fallback and some non-English languages
!apt-get -qq -y install espeak-ng > /dev/null 2>&1
# 🇪🇸 'e' => Spanish es