You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I encountered segmentation fault when I tried to run the inference code in StyleTTS2. After I checked out the code with pdb tools I found that when the code attempt to phonemize the text with EspeakBackend segmentation fault occured. Then I tried the following test code and the same error happened again.
fromphonemizer.backendimportEspeakBackendfromnltk.tokenizeimportword_tokenizea="I'm a test file."global_phonemizer=EspeakBackend(language='en-us', preserve_punctuation=True, with_stress=True)
text=a.strip()
ps=global_phonemizer.phonemize([text]) # segmentation fault happened when performed this lineps=word_tokenize(ps[0])
ps=''.join(ps)
print(f"ps: {ps}")
Phonemizer version
My phonemizer version is 3.3.0 .
System
My OS is CentOS-7 and my Python version is 3.9.20 .
Other python package version is as follows:
Hi, this is most probably a bug related to the way you installed espeak. I can run you code sample without trouble.
You may want to see here, espeak-ng is available on yum but centos7 is terribly outdated and you may have a very old version of espeak. Current one is espeak-ng-1.51.
To upgrade it you need to compile it from sources.
@mmmaat Thank you for providing explanation! In fact I notice that my espeak-ng version is 1.47.11. Moreover, I usually run my code on a slurm system and I don't have the root privilege to update the espeak-ng. So I want to ask if there's another way to update the espeak-ng or solve the bug.
you can compile the latest version from sources, no need to be root for that. Once compiled, provide the path to the compiled espeak-ng.so in the PHONEMIZER_ESPEAK_LIBRARY environment variable. For instance, add it to your ~/.bashrc file...
You can also test espeak without phonemizer, for instance enter the command espeak-ng -v en-us --ipa -x "this is a test"
Describe the bug
I encountered segmentation fault when I tried to run the inference code in StyleTTS2. After I checked out the code with pdb tools I found that when the code attempt to phonemize the text with EspeakBackend segmentation fault occured. Then I tried the following test code and the same error happened again.
Phonemizer version
My phonemizer version is 3.3.0 .
System
My OS is CentOS-7 and my Python version is 3.9.20 .
Other python package version is as follows:
To reproduce
Already demonstrate the example in the bug description part.
Expected behavior
I hope to use the EspeakBackend to phonemize text normally so as to run the test code.
Additional context
No exactly.
The text was updated successfully, but these errors were encountered: