From f22a5191a444152157bbf517ed4a9aff720ee31b Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 5 Sep 2025 21:18:45 +0200 Subject: [PATCH] feat: support lang_code; add instructions for Chinese usage --- README.md | 13 +++++++++++-- requirements-zh.txt | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 requirements-zh.txt diff --git a/README.md b/README.md index a0cfdad..2fd24f7 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ sudo apt install vlc espeak-ng > [!Note] > Installing `vlc` via flatpak or snap will not work, as the code need access to `libvlc`. - ## Setup Clone repo and go into the directory @@ -61,9 +60,19 @@ Activate the environment and install the dependencies ```bash conda activate tts -python -m pip install -r requirements.txt +pip install -r requirements.txt ``` +## Language-specific dependencies + +There are language-specific python dependencies. For example, if you will use Chinese voices (see [voices usage](#voices)), please install the requirements `requirements-zh.txt` ... supporting more languages is still a work in progress. + +```bash +pip install -r requirements-zh.txt + +## then you can use zh-prefixed voices for Chinese texts: +python tts.py -v zf_xiaoni "事实胜于雄辩" +``` ### Intel XPU environmental variables (Optional) diff --git a/requirements-zh.txt b/requirements-zh.txt new file mode 100644 index 0000000..cb49973 --- /dev/null +++ b/requirements-zh.txt @@ -0,0 +1,4 @@ +# for zh +pinyin_to_ipa +cn2an +jieba