这两天在学习Qt,偶然发现一个比较好玩的TTS(Text To Speech)API-----QtSpeech。QtSpeech支持跨平台,在LInux下利用的是Festival TTS引擎。Festival 是CSTR(The Center for Speech Technology Research)的研究成果.不过好像目前只支持英语和西班牙语。这也可以是multi-lingual,囧。。。
Festival官网:http://www.cstr.ed.ac.uk/projects/festival/ 上面还有Online Demo,可以试一下效果
QtSpeech对Festival进行了简单的封装,基本上实现了TTS,不过效果好像还是没有官网上好
源码托管在http://gitorious.org/qt-speech
git clone git://gitorious.org/qt-speech/qt-speech.git
cd qt-speech/
INSTALL.TXT:
A) Unix
14 sh get-festival.sh //安装festival tts引擎
15 qmake QtSpeech.pro //有些commit版本中好像有这个,但大部分都是一个static和dll版本,选择一个qmake一下就行了
16 make
<