ekho 6.3 text conversion language ported to arm development board

ekho text-to-language library cross-compilation

1. Download ekho source code, libsndfile library source code

http://www.eguidedog.net/cn/ekho_cn.php #ekho-6.3.tar.xz source code

[The libsndfile Home Page] (http://libsndfile.github.io/libsndfile/) #libsndfile-1.1.0.tar.xz library source code

1. Create a compilation working directory in the home directory

#1.创建目录 
mkdir  /home/gec/ekho/ekho_arm_lib  -p
#2.把源码解压到该目录  
tar  -xvf  ekho-6.3.tar.xz  -C  /home/gec/ekho/
tar  -xvf  libsndfile-1.1.0.tar.xz  -C  /home/gec/ekho/

2. Cross compile libsndfile

#1.进入源码目录
 cd  /home/gec/libsndfile-1.1.0/
 
#2.配置arm版本的makefiel 
./configure --prefix=/home/gec/ekho/ekho_arm_lib  --host=arm-linux --target=arm  CC=/usr/local/arm/5.4.0/usr/bin/arm-none-linux-gnueabi-gcc  AR=/usr/local/arm/5.4.0/usr/bin/arm-none-linux-gnueabi-ar  --disable-external-libs
    
-------------------------------------------------------------------------------------
#库安装目录   
/home/gec/ekho/ekho_arm_lib
#工具链目录    
/usr/local/arm/5.4.0/usr/bin/

3. Compile and install

make  
make install 

4. Cross compile ekho source code

#1.进入源码目录
cd /home/gec/ekho/ekho-6.3/

#2.配置arm版本的makefiel 
./configure --prefix=/home/gec/ekho/ekho_arm_lib --host=arm-linux --target=arm CC=/usr/local/arm/5.4.0/usr/bin/arm-none-linux-gnueabi-gcc CC=/usr/local/arm/5.4.0/usr/bin/arm-none-linux-gnueabi-g++ AR=/usr/local/arm/5.4.0/usr/bin/arm-none-linux-gnueabi-ar LDFLAGS=-L/home/gec/ekho/ekho_arm_lib/lib CFLAGS=-I/home/gec/ekho/ekho_arm_lib/include CPPFLAGS=-I/home/gec/ekho/ekho_arm_lib/include CXXFLAGS="-DNO_SSE" --without-pulseaudio 

5. Compile and install

make 
make install 

Reminder: compile error
Please add a picture description
solution:
Please add a picture description

ekho ported to development board

1. Copy the tool file

cd  /home/gec/ekho/ekho_arm_lib/bin 

Please add a picture description

Download the ekho file to the /bin directory of the development board

2. Copy library files

cd /home/gec/ekho/ekho_arm_lib/lib 

Please add a picture description

Download these library files to the /lib directory of the development board

3. Copy the language library

cd /home/gec/ekho/ekho_arm_lib/share 

Please add a picture description

Download the ekho-data folder to the /usr/share directory of the development board

Please add a picture description


hint:

Please add a picture description

其中Cantonese(粤语)、Mandarin(普通话)、Ngangien(元朝前古汉语@_@)、Hakka(客家语)倒是能翻译普通话,Tibetan(藏语),Hangul(朝鲜语)就不行不行。默认是Mandarin,遗憾的是普通话下不能朗读字母,要Festival的支持才行。一开始用英文测试,还以为没安装成功。

红色框框的是其他语言库可以删除。

ekho use command

测试:
直接文字转语音
ekho "你好"

读取文本文字转语音
ekho -f test.txt

 文字转语音文件
ekho "测试音频" -o test.wav

文字转语音,广东话 
ekho -v Cantonese "你好"

通过参数-s,调整语速,默认为0
ekho "测试语速" -s 30

通过参数-p,调整语调,默认为0,(-100 ,100]
ekho "测试语调" -p 20

通过参数-a,调整音量,默认为0,(-100, 100]
ekho "测试音量" -a 20

更多命令使用查看: 
ekho  -h 

References

https://blog.csdn.net/qq_23235811/article/details/103275193 

https://blog.csdn.net/cz2085007221/article/details/118609289

https://zhuanlan.zhihu.com/p/429459985

https://blog.csdn.net/cceking/article/details/51760732

https://blog.csdn.net/YxiaoqiR/article/details/111414132

Guess you like

Origin blog.csdn.net/qq_34548424/article/details/127429549