From 1c7bdd971d2e32981f0f2b92d1fe5b0051e21457 Mon Sep 17 00:00:00 2001 From: hexgrad <166769057+hexgrad@users.noreply.github.com> Date: Sat, 5 Apr 2025 15:00:22 -0700 Subject: [PATCH] Bump to 0.9.4 (#169) --- README.md | 23 +++++++++++------------ kokoro/__init__.py | 2 +- pyproject.toml | 6 +++--- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 10b2012..57a6a24 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ An inference library for [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) ### Usage You can run this basic cell on [Google Colab](https://colab.research.google.com/). [Listen to samples](https://huggingface.co/hexgrad/Kokoro-82M/blob/main/SAMPLES.md). ```py -!pip install -q kokoro>=0.9.2 soundfile +!pip install -q kokoro>=0.9.4 soundfile !apt-get -qq -y install espeak-ng > /dev/null 2>&1 from kokoro import KPipeline from IPython.display import display, Audio @@ -25,21 +25,11 @@ for i, (gs, ps, audio) in enumerate(generator): ``` Under the hood, `kokoro` uses [`misaki`](https://pypi.org/project/misaki/), a G2P library at https://github.com/hexgrad/misaki -### Windows Installation -To install espeak-ng on Windows: -1. Go to [espeak-ng releases](https://github.com/espeak-ng/espeak-ng/releases) -2. Click on **Latest release** -3. Download the appropriate *.msi file (e.g. **espeak-ng-20191129-b702b03-x64.msi**) -4. Run the downloaded installer - -For advanced configuration and usage on Windows, see the [official espeak-ng Windows guide](https://github.com/espeak-ng/espeak-ng/blob/master/docs/guide.md) - ### Advanced Usage You can run this advanced cell on [Google Colab](https://colab.research.google.com/). ```py # 1️⃣ Install kokoro -!pip install -q kokoro>=0.9.2 soundfile - +!pip install -q kokoro>=0.9.4 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 @@ -96,6 +86,15 @@ for i, (gs, ps, audio) in enumerate(generator): sf.write(f'{i}.wav', audio, 24000) # save each audio file ``` +### Windows Installation +To install espeak-ng on Windows: +1. Go to [espeak-ng releases](https://github.com/espeak-ng/espeak-ng/releases) +2. Click on **Latest release** +3. Download the appropriate `*.msi` file (e.g. **espeak-ng-20191129-b702b03-x64.msi**) +4. Run the downloaded installer + +For advanced configuration and usage on Windows, see the [official espeak-ng Windows guide](https://github.com/espeak-ng/espeak-ng/blob/master/docs/guide.md) + ### Conda Environment Use the following conda `environment.yml` if you're facing any dependency issues. ```yaml diff --git a/kokoro/__init__.py b/kokoro/__init__.py index 3dfefcb..9156e5c 100644 --- a/kokoro/__init__.py +++ b/kokoro/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.9.2' +__version__ = '0.9.4' from loguru import logger import sys diff --git a/pyproject.toml b/pyproject.toml index 0220ec1..12f8bf8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "kokoro" -version = "0.9.2" +version = "0.9.4" description = "TTS" readme = "README.md" authors = [ @@ -20,7 +20,7 @@ requires-python = ">=3.10, <3.13" dependencies = [ "huggingface_hub", "loguru", - "misaki[en]>=0.9.2", + "misaki[en]>=0.9.4", "numpy", "torch", "transformers" @@ -34,5 +34,5 @@ only-include = ["kokoro"] only-packages = true [project.urls] -Homepage = "https://github.com/hexgrad/kokoros" +Homepage = "https://github.com/hexgrad/kokoro" Repository = "https://github.com/hexgrad/kokoro"