A simple Bash script to compile eSpeak on Mac OS X
- Version: 1.0.2
- Date: 2016-07-20
- Developer: Alberto Pettarin (contact)
- License: the MIT License (MIT), see LICENSE.md
2016-07-20: now if you brew install espeak
you will get eSpeak and libespeak, as patched by Daniel Bair.
See this merged PR on Homebrew.
Please note that it uses the ASYNC
define, instead of the patches in this repository, which seem to be unstable.
In general, a more robust sem_timedwait()
replacement is needed.
2016-07-06: Daniel Bair used the patches in this repository to create a brew formula to easily install eSpeak on OS X, see issue #2 for details.
2016-05-12: Jacobo Tarragón extended the patch to work with OS X 10.10 and 10.11.
2016-01-02: eSpeak is transitioning to eSpeak NG, which should solve the compilation issues in OS X, making this project (espeakosx) obsolete.
-
Clone this repo:
$ git clone https://github.com/pettarin/espeakosx.git $ cd espeakosx
-
Download
pa_stable_v19_20140130.tgz
from PortAudio into theespeakosx
directory. -
Download
espeak-1.48.04-source.zip
from SourceForge into theespeakosx
directory. (SourceForge uses mirrors and expire parameters, so I cannot download the source ZIP directly in thecompile.sh
script.) -
Run the script, providing the PortAudio source TGZ file as the first argument, and the eSpeak source ZIP file as the second argument:
$ bash compile.sh pa_stable_v19_20140130.tgz espeak-1.48.04-source.zip
-
The compiled eSpeak files will be located in
/tmp/espeakosx/espeak-1.48.04-source/src/
. -
(OPTIONAL) If you installed
espeak
viabrew
(i.e.,brew install espeak
), you might want symlink theespeak-data
directory:$ sudo ln -s /usr/local/share/espeak-data /usr/share/espeak-data
espeakosx is released under the MIT License.