ekho安装及测试(中文文字转语音)

1. 官网下载源码包

地址:http://www.eguidedog.net/ekho.php

2. 安装

1   xz -d ekho-7.5.tar.xz
2   tar -xvf ekho-7.5.tar
3   apt-get install libespeak-dev
4   apt-get install pulseaudio
5   apt-get install libpulse-ocaml-dev
9 apt-get install libespeak-ng-dev(ekho-8.6)
6 ./configure 7 make 8 make install

3. 使用测试
3.1. 默认普通话

 ekho "你好"

(支持的发音'Cantonese', 'Mandarin', 'Toisanese', 'Hakka', 'Tibetan', 'Ngangien' and 'Hangul')

3.2. 使用广东话

 ekho -v Cantonese "你好"

3.3. 读文件

ekho -f 测试文件.txt

3.4. 生成录音文件

ekho "你好。请继续保持努力!" -o holdon.wav

3.5. 将文本转换成广东话版本的ogg格式的录音文件

 ekho -v Cantonese -f 测试文件.txt -t ogg -o gdh.ogg

3.6. 调整语速

 ekho "大家好,今天是星期五" -s -50 ~ 100(默认是0)

3.7. 调整语调

ekho "大家好,今天是星期五" -p -100 ~ 100(默认是0,不包括-100

3.8. 调整音量

ekho "大家好,今天是星期五" -a -100 ~ 100(默认是0,不包括-100

 

posted @ 2017-12-31 21:43  一沙世界  阅读(4306)  评论(0编辑  收藏  举报