How to build espeak-ng on Mac

admin 提交于 周一, 12/21/2020 - 09:35

(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

添加新评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"汉语"