Update espeak_wrapper.py

This commit is contained in:
Ben Epstein 2024-05-05 19:12:02 -04:00 committed by GitHub
parent dbf1a08a0d
commit 6b0b7ea33c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -111,7 +111,10 @@ class ESpeak(BasePhonemizer):
def __init__(self, language: str, backend=None, punctuations=Punctuation.default_puncs(), keep_puncs=True):
if self._ESPEAK_LIB is None:
raise Exception(" [!] No espeak backend found. Install espeak-ng or espeak to your system.")
raise Exception(
" [!] No espeak backend found. Install espeak-ng or espeak to your system. "
"See https://github.com/espeak-ng/espeak-ng/blob/master/docs/guide.md#installation"
)
self.backend = self._ESPEAK_LIB
# band-aid for backwards compatibility