From e44c9b4add06a83b148f3cea67f916b5b69abc96 Mon Sep 17 00:00:00 2001 From: Ash <195956251+sudoAshroom@users.noreply.github.com> Date: Tue, 1 Apr 2025 18:54:14 +0100 Subject: [PATCH] Update README.md (#154) Sorted lang_code tickers in alphabetical order above the input. Before they were oddly stretched out over different steps rather than being sorted and directly above the input. --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b8cf15b..b3d5709 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,9 @@ You can run this advanced cell on [Google Colab](https://colab.research.google.c ```py # 1️⃣ Install kokoro !pip install -q kokoro>=0.9.2 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 -# 🇫🇷 'f' => French fr-fr -# 🇮🇳 'h' => Hindi hi -# 🇮🇹 'i' => Italian it -# 🇧🇷 'p' => Brazilian Portuguese pt-br # 3️⃣ Initalize a pipeline from kokoro import KPipeline @@ -44,9 +40,14 @@ from IPython.display import display, Audio import soundfile as sf import torch # 🇺🇸 'a' => American English, 🇬🇧 'b' => British English +# 🇪🇸 'e' => Spanish es +# 🇫🇷 'f' => French fr-fr +# 🇮🇳 'h' => Hindi hi +# 🇮🇹 'i' => Italian it # 🇯🇵 'j' => Japanese: pip install misaki[ja] +# 🇧🇷 'p' => Brazilian Portuguese pt-br # 🇨🇳 'z' => Mandarin Chinese: pip install misaki[zh] -pipeline = KPipeline(lang_code='a') # <= make sure lang_code matches voice +pipeline = KPipeline(lang_code='a') # <= make sure lang_code matches voice, reference above. # This text is for demonstration purposes only, unseen during training text = '''