-
Notifications
You must be signed in to change notification settings - Fork 762
Description
Describe the bug
After installing espeak-ng with brew install espeak-ng
in my Amphion directory, it still says it's not installed:
Traceback (most recent call last): File "/opt/homebrew/Caskroom/miniforge/base/envs/maskgct/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/homebrew/Caskroom/miniforge/base/envs/maskgct/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/nick/Desktop/Amphion/models/tts/maskgct/maskgct_inference.py", line 6, in <module> from models.tts.maskgct.maskgct_utils import * File "/Users/nick/Desktop/Amphion/models/tts/maskgct/maskgct_utils.py", line 20, in <module> from models.tts.maskgct.g2p.g2p_generation import g2p, chn_eng_g2p File "/Users/nick/Desktop/Amphion/models/tts/maskgct/g2p/g2p_generation.py", line 10, in <module> from models.tts.maskgct.g2p.utils.g2p import phonemizer_g2p File "/Users/nick/Desktop/Amphion/models/tts/maskgct/g2p/utils/g2p.py", line 17, in <module> phonemizer_zh = EspeakBackend( File "/opt/homebrew/Caskroom/miniforge/base/envs/maskgct/lib/python3.10/site-packages/phonemizer/backend/espeak/espeak.py", line 45, in __init__ super().__init__( File "/opt/homebrew/Caskroom/miniforge/base/envs/maskgct/lib/python3.10/site-packages/phonemizer/backend/espeak/base.py", line 39, in __init__ super().__init__( File "/opt/homebrew/Caskroom/miniforge/base/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
I'm sure this is an easy fix as I'm confident it's probably an issue with a path environment variable but how can I fix it on Apple M2?
How To Reproduce
Steps to reproduce the behavior:
cd Amphion
conda activate maskgct
python -m models.tts.maskgct.maskgct_inference