How to install eSpeak with Cantonese
(updated on Nov 2, 2013)
For Ubuntu Linux
Here is the procedure to build latest version by yourself
- Download latest eSpeak source file (espeak-{version}-source.zip) from get eSpeak from eSpeak Download Page
- Extract the package with command `unzip espeak-{version}-source.zip`. I will mark the extracted folder as {path_to_espeak} in following steps.
- Get zhy_list from Additional Data for eSpeak
- Copy zhy_list to dictsource/.
- Install a dependency package with `sudo apt-get install libpulse-dev`.
- Change directory to src with `cd {path_to_espeak}/src`
- Edit Makefile (with editor vi, gedit etc.). Find "AUDIO = portaudio", put "#" at the beginning of the line; find "#AUDIO = pulseaudio" and remove the beginning "#". Save and exit.
- Build eSpeak with command `make && make install`
- Compile eSpeak with command `cd {path_to_espeak}/dictsource && sudo espeak --compile=zhy`. We will get error of "Can't access (r) zhy_rules" if we are not in path of dictsource. And we need root permission because Cantonese dictionary will install in /usr/share/espeak-data directly.
- Run `espeak -vzhy "粤语"` and enjoy:)
If you feel above descriptiton too compliate, Try to copy-paste following command in shell.
sudo apt-get install libpulse-dev
wget http://sourceforge.net/projects/e-guidedog/files/eSpeak-Chinese/1.47.11/espeak-1.47.11-source.tar.xz
rm -rf espeak-1.47.11-source
tar xJvf espeak-1.47.11-source.tar.xz
cd espeak-1.47.11-source/src
make
sudo make install
espeak -vzhy 123
|