pangblog

 

  1. 1.festival

 

安装:sudo apt-get install festival 

使用:

(SayText "Hello!")


 

  1. 2. espeek(ubuntu 自带)

 


 

# espeak --stdout \'words to speak\' | aplay
# espeak -s 140 -f mydocument.txt | aplay
# espeak --stdout -t mydocument.txt | aplay
# espeak -v en-uk --stdout \'reading tips & tricks in TGS\' | aplay

 

Convert your text file to an audio file as shown below.

# espeak -t mydocument.txt -w myaudio.wav

参见:

 

How to Convert Text Document to Speech on Ubuntu Using eSpeak

 

 

 

分类:

技术点:

相关文章: