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 #297

Open
fontnet1 opened this issue Dec 16, 2024 · 6 comments
Open

RuntimeError: espeak not installed on your system #297

fontnet1 opened this issue Dec 16, 2024 · 6 comments

Comments

@fontnet1
Copy link


RuntimeError Traceback (most recent call last)
Cell In[18], line 66
64 # load phonemizer
65 import phonemizer
---> 66 global_phonemizer = phonemizer.backend.EspeakBackend(language='en-us', preserve_punctuation=True, with_stress=True)
68 config = yaml.safe_load(open("Models/LibriTTS/config.yml"))
70 # load pretrained ASR model

File c:\Users\Abbasian\Desktop\ps VsCode\FONT4_Vnve\Lib\site-packages\phonemizer\backend\espeak\espeak.py:45, in EspeakBackend.init(self, language, punctuation_marks, preserve_punctuation, with_stress, tie, language_switch, words_mismatch, logger)
37 def init(self, language: str,
38 punctuation_marks: Optional[Union[str, Pattern]] = None,
39 preserve_punctuation: bool = False,
(...)
43 words_mismatch: WordMismatch = 'ignore',
44 logger: Optional[Logger] = None):
---> 45 super().init(
46 language, punctuation_marks=punctuation_marks,
47 preserve_punctuation=preserve_punctuation, logger=logger)
49 self._espeak.set_voice(language)
50 self._with_stress = with_stress

File c:\Users\Abbasian\Desktop\ps VsCode\FONT4_Vnve\Lib\site-packages\phonemizer\backend\espeak\base.py:39, in BaseEspeakBackend.init(self, language, punctuation_marks, preserve_punctuation, logger)
35 def init(self, language: str,
36 punctuation_marks: Optional[Union[str, Pattern]] = None,
37 preserve_punctuation: bool = False,
38 logger: Optional[Logger] = None):
---> 39 super().init(
40 language,
41 punctuation_marks=punctuation_marks,
42 preserve_punctuation=preserve_punctuation,
43 logger=logger)
45 self._espeak = EspeakWrapper()
46 self.logger.debug('loaded %s', self._espeak.library_path)

File c:\Users\Abbasian\Desktop\ps VsCode\FONT4_Vnve\Lib\site-packages\phonemizer\backend\base.py:77, in BaseBackend.init(self, language, punctuation_marks, preserve_punctuation, logger)
75 # ensure the backend is installed on the system
76 if not self.is_available():
---> 77 raise RuntimeError( # pragma: nocover
78 '{} not installed on your system'.format(self.name()))
80 self._logger = logger
81 self._logger.info(
82 'initializing backend %s-%s',
83 self.name(), '.'.join(str(v) for v in self.version()))

Screenshot (682)
Screenshot (681)

@fontnet1
Copy link
Author

image

@fontnet1
Copy link
Author

image

@fontnet1
Copy link
Author

Can this code also be used to teach Persian?

@anurag12-webster
Copy link

@fontnet1
Try to reinstall espeak and also when installed make sure you update phonemizer library to latest one with.

pip install --upgrade phonemizer

@fontnet1
Copy link
Author

ممنون

@fontnet1
Copy link
Author

@anurag12-webster
Where exactly should I install espeak-ng? I will tell you about the project through the virtual environment.

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

2 participants