bootphon / phonemizer

Simple text to phones converter for multiple languages
https://bootphon.github.io/phonemizer/
GNU General Public License v3.0
1.24k stars 174 forks source link

“RuntimeError: espeak not installed on your system” on Linux #185

Open jituring opened 2 weeks ago

jituring commented 2 weeks ago

I installed espeak through source code.Now, I am in the conda environment on CentOS, but there is an error: File "/data/maskgct/Amphion/models/tts/maskgct/g2p/utils/g2p.py", line 17, in phonemizer_zh = EspeakBackend( File "/root/miniconda3/envs/maskgct/lib/python3.10/site-packages/phonemizer/backend/espeak/espeak.py", line 45, in init super().init( File "/root/miniconda3/envs/maskgct/lib/python3.10/site-packages/phonemizer/backend/espeak/base.py", line 39, in init super().init( File "/root/miniconda3/envs/maskgct/lib/python3.10/site-packages/phonemizer/backend/base.py", line 77, in init raise RuntimeError( # pragma: nocover RuntimeError: espeak not installed on your system

jituring commented 2 weeks ago

Solution: # find / -name "*libespeak*" .... /usr/local/lib/libespeak-ng.so

# conda env config vars set PHONEMIZER_ESPEAK_LIBRARY="/usr/local/lib/libespeak-ng.so"

and reload conda env.

it‘s works!