AudioLDM2 icon indicating copy to clipboard operation
AudioLDM2 copied to clipboard

Runtime error: espeak not installed on your system

Open davidkamp opened this issue 2 years ago • 8 comments

I am on a M1 macbook air on Monterey and followed the latest install instructions. when I run the audiodlm2 example command "Musical constellations ...etc" I get this runtime error.

When I try "pip3 install espeak" no matching distribution is found, if I run "pip3 install phonemizer" it says it is already installed.... Any ideas?

davidkamp avatar Aug 14 '23 20:08 davidkamp

brew install espeak installs this but does not clear the error

robertZaufall avatar Aug 14 '23 20:08 robertZaufall

yes, doing that tells me espeak is installed, same runtime error though.

davidkamp avatar Aug 14 '23 20:08 davidkamp

Oh yes I forgot this dependency. You can do the following

sudo apt-get install espeak

haoheliu avatar Aug 14 '23 20:08 haoheliu

espeak is listed as installed when using brew install espeak (I believe apt-get does not exist on osx?)

davidkamp avatar Aug 14 '23 20:08 davidkamp

this solved it for me: brew install espeak export PHONEMIZER_ESPEAK_LIBRARY=/opt/homebrew/Cellar/espeak/1.48.04_1/lib/libespeak.1.1.48.dylib

robertZaufall avatar Aug 14 '23 20:08 robertZaufall

Version independent:

export PHONEMIZER_ESPEAK_LIBRARY=$(find /opt/homebrew/Cellar/espeak -name "libespeak.dylib" | sort -r | head -n 1)

Also consider to add this line to your .zshenv file for persistence.

robertZaufall avatar Aug 14 '23 21:08 robertZaufall

setting PHONEMIZER_ESPEAK_LIBRARY environment variable worked for me also on Windows 10

ghost avatar Aug 15 '23 01:08 ghost

Thank you - this worked for me too!

davidkamp avatar Aug 15 '23 18:08 davidkamp