Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jituring opened this issue Nov 5, 2024 · 1 comment
Open

Comments

@jituring
Copy link

jituring commented Nov 5, 2024

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
Copy link
Author

jituring commented Nov 5, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant