-
Notifications
You must be signed in to change notification settings - Fork 172
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 #44
Comments
You need to install espeak, or better, espeak-ng : https://github.com/espeak-ng/espeak-ng/blob/master/docs/building.md#windows |
Yes, I did it and can open and use espeak application, but phonemizer raises that error still |
Ok, so I suppose espeak-ng is not in your PATH. But phonemizer provides an alternative way to specify the path to espeak: you can setup the environment variable |
The path to espeak is the path to folder with TTSApp.exe, sure? After creating this path I have an error:
Which path should I use? To which file? |
I don't have Windows so I cannot really help you with hands on... It has already been used on Windows and you are the first one to report such an issue. The Maybe You can also try this one: https://sourceforge.net/projects/espeak/files/espeak/espeak-1.48/setup_espeak-1.48.04.exe |
Very good! There was the file C:\Program Files (x86)\eSpeak\command_line\espeak.exe and I did assign it to PHONEMIZER_ESPEAK_PATH. Now it works! |
Hey @PasaOpasen, before setting the environment variable path as PHONEMIZER_ESPEAK_PATH = C:\Program Files (x86)\eSpeak\command_line\espeak.exe did you store espeak.py file at any specific place. Did the error got cleared after placing this espeak.py at a certain place and you set the environment variable path or you had nothing to do with the espeak.py file and set the environment variable "PHONEMIZER_ESPEAK_PATH" I created a new environment variable PHONEMIZER_ESPEAK_PATH and I gave the path same as you C:\Program Files (x86)\eSpeak\command_line\espeak.exe. I am still facing the error. Please help. |
That's because you're trying to add the path to the .exe file, you need to add the directory instead to the PATH variable: |
The variable name is changed to PHONEMIZER_ESPEAK_LIBRARY and it refers to the .dll now: |
This worked very well and saved me a headache, thanks! |
注意是PHONEMIZER_ESPEAK_LIBRARY和PHONEMIZER_ESPEAK_PATH |
finally it works! |
1.PHONEMIZER_ESPEAK_LIBRARY = C:\Program Files\eSpeak NG\libespeak-ng.dll click new and add these variables to your system variables in environment variables |
i did this but it's still not working T_T is there maybe some detail that i'm missing? Do I need to install espeak in python or something. i'm going crazy |
Hi, I'm not a Windows expert so I can't really help you... But. Are you sure the "C:\Program Files\eSpeak NG\libespeak-ng.dll" you provided actually is an existing file? Another solution: Use the docker image: https://bootphon.github.io/phonemizer/install.html#docker-image. Install docker on your machine, then install the docker image of the phonemizer. Another solution: Use Windows subsystem for Linux (https://learn.microsoft.com/en-us/windows/wsl/install) |
thanks for the fast answer, the file actually exists, but it is in Program Files (x86) so i changed the path. However it doesn't come up when i look for it as a directory, could this be the problem? thanks, i'm really not an expert |
Ok... so it MUST BE the exact and absolute path to the |
i checked many times and the path is correct, however it's still not working. thank you again for your help, hope i can find a solution and post it here for anyone that may need it |
Did you solve that problem now? I meet the same problem with you. |
Me too! Please let me know if this problem solved. Thanks! |
Unfortunately I couln’t find a solution and i had to resort to another package |
Hey ,I've solved this ! (0) you need to comment out line75-80 in
(1) Install espeak (2) Install espeak-ng (3) Copy the espeak-ng's dll (4) Add (5) Restart your vscode/cmd/Jupyter or anything you run VITS or something else You can uninstall eSpeak NG after you've done this |
Better method
|
It indeed works! |
Thank you very much! |
Nothing works. |
from phonemizer.backend.espeak.wrapper import EspeakWrapper But when use phonemize(): Any help? |
I have uninstalled So, C:\Program Files (x86)\eSpeak NG\libespeak-ng.dll was changed to C:\Program Files\eSpeak NG\libespeak-ng.dll And this
works fine! Be careful for right msi version! |
Guys, nothing worked for me from here, so I asked bing chat. bing answer: Finally worked. I've wasted 2 hours on this. |
for linux or WSL users, Instead of doing pip install espeak, try 'sudo apt-get install espeak-ng' |
fyi, I'm not on Windows, but on Mac OS Sonoma (ARM64, M2) and I have exactly the same troubles, hours sinking into this install. I have installed espeak via brew, it's available on zsh, I can open it and synthesise speech. I tried installed espeak-ng via pip (failed), via brew (kinda worked), via ports (worked) and made sure that I exported all paths correctly as seen here and otherwhere. So, on shell, I have espeak, on python shell I can access espeakng, seems all good. But Juypter still tells me I haven't installed espeak. So I guess, this is rather an issue of how this library accesses espeak. I admit, I don't understand, why we need to handle full paths to dynamic libs when the full program command is available on my shell and thus also in python; isn't this the point of having conda and pip and such? Trying a reboot now as a last step before giving up... |
It's been a while since I installed it on my M1 Mac, but I'm pretty sure I had to compile espeak-ng from source to get it working |
Took me 2 hours to get espeak working with phonemizer. |
@audiocommander For macos, if use |
@sunnnnnnnny this is usually a bad idea to edit files from the standard library... Instead you may want to set the environment variable from phonemizer.backend.espeak.wrapper import EspeakWrapper
_ESPEAK_LIBRARY = 'C:\Program Files\eSpeak NG\libespeak-ng.dll'
EspeakWrapper.set_library(_ESPEAK_LIBRARY) |
ok,thanks; i see it; |
Ok... This issue seems to cause a lot of troubles since a long time... I just updated the Windows installation instructions (https://bootphon.github.io/phonemizer/install.html#on-windows). Hope this helps. I do not use - and don't know much about - Windows or MacOS so it's difficult for me to help or replicate problems from this thread. Anyway I welcome any PR with improvement on the documentation from Windows/macOs users 🥇, thank you! |
Add this hint to the Windows instructions: I've tried a ton of things, including renaming the library (removing lib from libespeak-ng.dll removed 50% of the errors but then it got stuck again) or copying it into system32, nothing worked to get through the "layers of detection", those two environment variables did it. |
THANK YOU SO MUCH. I spent over an hour this morning trying to get espeak phonemizer, which is a depency of styletts2, working on my system with anaconda, and your solution finally solved it |
My Solution for Windows: from phonemizer.backend.espeak.wrapper import EspeakWrapper eSpeak NG - Installed from official site (msi) |
This finally fixed it for me, but using |
this is what works on my mac: |
How to solve
RuntimeError: espeak not installed on your system
on Windows without using Linux in Windows?The text was updated successfully, but these errors were encountered: