Open XqZeppelinhead0702 opened 1 month ago
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.