feat: support lang_code; add instructions for Chinese usage

This commit is contained in:
Ayo Ayco 2025-09-05 21:18:45 +02:00
parent 92e181bf67
commit f22a5191a4
2 changed files with 15 additions and 2 deletions

View file

@ -35,7 +35,6 @@ sudo apt install vlc espeak-ng
> [!Note] > [!Note]
> Installing `vlc` via flatpak or snap will not work, as the code need access to `libvlc`. > Installing `vlc` via flatpak or snap will not work, as the code need access to `libvlc`.
## Setup ## Setup
Clone repo and go into the directory Clone repo and go into the directory
@ -61,9 +60,19 @@ Activate the environment and install the dependencies
```bash ```bash
conda activate tts 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) ### Intel XPU environmental variables (Optional)

4
requirements-zh.txt Normal file
View file

@ -0,0 +1,4 @@
# for zh
pinyin_to_ipa
cn2an
jieba