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
{{ message }}
Repository navigation
RuntimeError: espeak not installed on your system #44
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 PHONEMIZER_ESPEAK_PATH must be an absolute path to the .exe file, along with the .exe extension.
Maybe PHONEMIZER_ESPEAK_PATH=C:\Program Files (x86)\eSpeak.exe will work? If you have such a file... The good file must be an executable one, usable from command line (not a GUI one).
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.
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:
"C:\Program Files (x86)\eSpeak\command_line"
changed the title [-]RuntimeError: espeak not installed on your system[/-][+][Windows] RuntimeError: espeak not installed on your system[/+]on May 10, 2021
The variable name is changed to PHONEMIZER_ESPEAK_LIBRARY and it refers to the .dll now:
PHONEMIZER_ESPEAK_LIBRARY="c:\Program Files\eSpeak NG\libespeak-ng.dll"
Reacted by kerwin and Haowei Lou
Reacted by Yiwei Guo, hakan-demirli, Fabrice Harel-Canada, Yakkanti Dinesh, Kathy, LobaChe, VLT Media, Praveen300163, Ruffin, Oleksii Biloshytskyi and 15 more
The variable name is changed to PHONEMIZER_ESPEAK_LIBRARY and it refers to the .dll now: PHONEMIZER_ESPEAK_LIBRARY="c:\Program Files\eSpeak NG\libespeak-ng.dll"
This worked very well and saved me a headache, thanks!
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:
conda env config vars set PHONEMIZER_ESPEAK_PATH=“C:\Program Files\eSpeak NG”
conda env config vars set PHONEMIZER_ESPEAK_LIBRARY="C:\Program Files\eSpeak NG\libespeak-ng.dll"
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.
In Anaconda environment, install espeak-ng then conda env config vars set PHONEMIZER_ESPEAK_PATH=“C:\Program Files\eSpeak NG”conda env config vars set PHONEMIZER_ESPEAK_LIBRARY="C:\Program Files\eSpeak NG\libespeak-ng.dll" It just worked.
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
@sunnnnnnnny this is usually a bad idea to edit files from the standard library... Instead you may want to set the environment variable PHONEMIER_ESPEAK_LIBRARY=/opt/homebrew/lib/espeak.dylib (or the actual path to the espeak library on your machine). Or you can use/adapt this Python snippet:
This finally fixed it for me, but using export PHONEMIZER_ESPEAK_LIBRARYPATH="/opt/homebrew/Cellar/espeak/1.48.04_1/lib/libespeak.dylib" is still broken for me on zsh. Am I using the wrong env variable name?
I didn't get it, forabout 200 years, why phonemizer founding espeak lib can't found more wisely?
If uses need to do it over and over again, why not wisely choose it inside phonemizer? @bootphon
It will be possible to use espeakng-loader with no need to install espeak-ng system wide!
Meanwhile if you want you can use along with phonemizer-fork which has the merged PR
Will this still require espeak to query the Audio Card?
Nevermind, I fixed that, the wrong bit is being triggered for the espeak init. I will put a PR in for that as well, however I think The owner no longer works on the project.
Activity
mmmaat commentedon May 25, 2020
You need to install espeak, or better, espeak-ng : https://github.com/espeak-ng/espeak-ng/blob/master/docs/building.md#windows
PasaOpasen commentedon May 26, 2020
Yes, I did it and can open and use espeak application, but phonemizer raises that error still
mmmaat commentedon May 26, 2020
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
PHONEMIZER_ESPEAK_PATHwith the absolute path to espeak (see https://github.com/bootphon/phonemizer/blob/master/phonemizer/backend/espeak.py#L62).PasaOpasen commentedon May 26, 2020
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?
mmmaat commentedon May 26, 2020
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
PHONEMIZER_ESPEAK_PATHmust be an absolute path to the.exefile, along with the.exeextension.Maybe
PHONEMIZER_ESPEAK_PATH=C:\Program Files (x86)\eSpeak.exewill work? If you have such a file... The good file must be an executable one, usable from command line (not a GUI one).You can also try this one: http://sourceforge.net/projects/espeak/files/espeak/espeak-1.48/setup_espeak-1.48.04.exe
PasaOpasen commentedon May 26, 2020
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!
sujithvoona commentedon Nov 9, 2020
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.
danthemango commentedon Apr 1, 2021
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:
"C:\Program Files (x86)\eSpeak\command_line"
[-]RuntimeError: espeak not installed on your system[/-][+][Windows] RuntimeError: espeak not installed on your system[/+]richardfoltin commentedon Jan 9, 2022
The variable name is changed to PHONEMIZER_ESPEAK_LIBRARY and it refers to the .dll now:
PHONEMIZER_ESPEAK_LIBRARY="c:\Program Files\eSpeak NG\libespeak-ng.dll"
cantabile-kwok commentedon Jan 26, 2022
This worked very well and saved me a headache, thanks!
wukongsleeping commentedon Jul 27, 2022
注意是PHONEMIZER_ESPEAK_LIBRARY和PHONEMIZER_ESPEAK_PATH
1.PHONEMIZER_ESPEAK_LIBRARY="c:\Program Files\eSpeak NG\libespeak-ng.dll"
2.PHONEMIZER_ESPEAK_PATH =“c:\Program Files\eSpeak NG”
TheKOG commentedon Aug 13, 2022
finally it works!
avst65t commentedon Oct 10, 2022
1.PHONEMIZER_ESPEAK_LIBRARY = C:\Program Files\eSpeak NG\libespeak-ng.dll
2.PHONEMIZER_ESPEAK_PATH = C:\Program Files\eSpeak NG
click new and add these variables to your system variables in environment variables
it will work
37 remaining items
cmp-nct commentedon Nov 24, 2023
Add this hint to the Windows instructions:
conda env config vars set PHONEMIZER_ESPEAK_PATH=“C:\Program Files\eSpeak NG”
conda env config vars set PHONEMIZER_ESPEAK_LIBRARY="C:\Program Files\eSpeak NG\libespeak-ng.dll"
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.
teddybear082 commentedon Dec 9, 2023
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
iackov commentedon Mar 5, 2024
My Solution for Windows:
from phonemizer.backend.espeak.wrapper import EspeakWrapper
EspeakWrapper.set_library('C:\Program Files\eSpeak NG\libespeak-ng.dll')
eSpeak NG - Installed from official site (msi)
matmult commentedon Mar 10, 2024
This finally fixed it for me, but using
export PHONEMIZER_ESPEAK_LIBRARYPATH="/opt/homebrew/Cellar/espeak/1.48.04_1/lib/libespeak.dylib"is still broken for me on zsh. Am I using the wrong env variable name?jthack commentedon Oct 3, 2024
this is what works on my mac:
export PHONEMIZER_ESPEAK_LIBRARY=/opt/homebrew/lib/libespeak-ng.dylib
MonolithFoundation commentedon Nov 15, 2024
I didn't get it, forabout 200 years, why phonemizer founding espeak lib can't found more wisely?
If uses need to do it over and over again, why not wisely choose it inside phonemizer? @bootphon
karo-zhebrak commentedon Jan 5, 2025
If you installed espeak with homebrew, set these in the PATH:
export PHONEMIZER_ESPEAK_LIBRARY=/opt/homebrew/lib/libespeak-ng.dylib
export PHONEMIZER_ESPEAK_PATH=/opt/homebrew/bin
thewh1teagle commentedon Jan 11, 2025
Once this PR merged:
It will be possible to use espeakng-loader with no need to install espeak-ng system wide!
Meanwhile if you want you can use along with phonemizer-fork which has the merged PR
bfrisco-raft commentedon Jan 17, 2025
Will this still require espeak to query the Audio Card?Nevermind, I fixed that, the wrong bit is being triggered for the espeak init. I will put a PR in for that as well, however I think The owner no longer works on the project.
add espeak hotfix for MacOS/Windows
add espeak hotfix for MacOS/Windows (#9)
DaynerKurdi commentedon Sep 27, 2025
Hello, I seem to have problems linking phonemizer with espeak on Windows 11,
Got espeak installed (1.52-dev), and got it working,
I added the system environment variables to my system.
PHONEMIZER_ESPEAK_PATH= C:\Program Files (x86)\eSpeak NG
PHONEMIZER_ESPEAK_LIBRARY= C:\Program Files (x86)\eSpeak NG\libespeak-ng.dll
Sadly, phonemizer still does not detect and keeps getting this error.
Fatal error: espeak not installed on your system.
Which odd.
I installed espeak on my local machine via .msi and tested it out with cmd.
carlos-chourio commentedon Dec 18, 2025
I think you needed to do:
PHONEMIZER_ESPEAK_LIBRARY= C:\Program Files\eSpeak NG\libespeak-ng.dll without the x86
StephanAkkerman commentedon Jan 28, 2026
Can confirm that the following works for me on Windows 11:
PeppyMeow commentedon Feb 2, 2026
for windows user, visit
https://github.com/espeak-ng/espeak-ng/releases/
and download the latest [espeak-ng.msi]
(https://github.com/espeak-ng/espeak-ng/releases/download/1.52.0/espeak-ng.msi)
after that,open power shell with admin right,and execute these four commands:
$env:PHONEMIZER_ESPEAK_LIBRARY = "c:\Program Files\eSpeak NG\libespeak-ng.dll"
$env:PHONEMIZER_ESPEAK_PATH = "c:\Program Files\eSpeak NG"
setx PHONEMIZER_ESPEAK_LIBRARY "c:\Program Files\eSpeak NG\libespeak-ng.dll"
setx PHONEMIZER_ESPEAK_PATH "c:\Program Files\eSpeak NG"
it works for me.