(I assume you have already installed HomeBrew.)
1. Download source code
2. run ./confugre
$ ./configure
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
espeak-ng links are point to /usr/share,but home brew install those files in /usr/local/share。So we need to fix the link paths.
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/ltversion.m4
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/ltsugar.m4
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/ltoptions.m4
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/libtool.m4
~/code/espeak-ng/m4$ ln -sf /usr/local/share/aclocal/lt~obsolete.m4
We can simply run this:
glibtoolize -c
3. build
$ ./autogen
$ ./configure
$ make
$ sudo make install
4. test
espeak-ng 'hello' // no sound
espeak-ng 'hello' -w demo.wav && play demo.wav // works
To play sound with espeak-ng directly, please refer to https://github.com/hgneng/ekho/issues/37#issuecomment-751125972
To install extra dictionary, we can try this:
./configure --with-extdict-zh --with-extdict-zhy
评论