In readme, it mentioned only for Mac, the backend requires PHONEMIZER_ESPEAK_LIBRARY to be set in the local environment. But actually it always need this environment variable be set, even it already works for me to use phonemizer to extract phones. (https://bootphon.github.io/phonemizer/python_examples.html)
|
if os.getenv('PHONEMIZER_ESPEAK_LIBRARY') is None: |
Maybe could delegate the detection to phonemizer or just follow the way it does (https://github.com/bootphon/phonemizer/blob/master/phonemizer/backend/espeak/wrapper.py)
In readme, it mentioned only for Mac, the backend requires PHONEMIZER_ESPEAK_LIBRARY to be set in the local environment. But actually it always need this environment variable be set, even it already works for me to use phonemizer to extract phones. (https://bootphon.github.io/phonemizer/python_examples.html)
g2p-plus/g2p_plus/wrappers/phonemizer_wrapper.py
Line 103 in 0f24ac7
Maybe could delegate the detection to phonemizer or just follow the way it does (https://github.com/bootphon/phonemizer/blob/master/phonemizer/backend/espeak/wrapper.py)