資源簡介
基本實現QT文本轉語音,需要MS Speech sdk,如果安裝中文語言包可以實現中英文混度,在main.cpp中調用speak函數朗讀

代碼片段和文件信息
#include?“mainwindow.h“
#include?
#include“textspeech.h“
int?main(int?argc?char?*argv[])
{
????QApplication?a(argc?argv);
????TextSpeech?ts;
????ts.speak(“hello這里是導航“);
????
????return?a.exec();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-05-15?09:39??TextToSay\
?????目錄???????????0??2013-05-15?09:28??TextToSay\debug\
?????文件??????135231??2013-05-15?09:28??TextToSay\debug\main.o
?????文件??????236819??2013-05-15?09:26??TextToSay\debug\mainwindow.o
?????文件????????2662??2013-05-15?09:26??TextToSay\debug\moc_mainwindow.cpp
?????文件??????141130??2013-05-15?09:26??TextToSay\debug\moc_mainwindow.o
?????文件????????4293??2013-05-15?09:26??TextToSay\debug\moc_textspeech.cpp
?????文件??????150130??2013-05-15?09:26??TextToSay\debug\moc_textspeech.o
?????文件??????204775??2013-05-15?09:28??TextToSay\debug\textspeech.o
?????文件?????3178362??2013-05-15?09:28??TextToSay\debug\TextToSay.exe
?????文件?????????237??2013-05-15?09:28??TextToSay\main.cpp
?????文件?????????233??2013-05-15?08:39??TextToSay\mainwindow.cpp
?????文件?????????321??2013-05-15?08:39??TextToSay\mainwindow.h
?????文件?????????654??2013-05-15?08:39??TextToSay\mainwindow.ui
?????文件???????11707??2013-05-15?09:25??TextToSay\Makefile
?????文件???????36662??2013-05-15?09:25??TextToSay\Makefile.Debug
?????文件???????36754??2013-05-15?09:25??TextToSay\Makefile.Release
?????目錄???????????0??2013-05-15?09:25??TextToSay\release\
?????文件????????1612??2013-05-15?09:31??TextToSay\textspeech.cpp
?????文件?????????580??2013-05-15?09:25??TextToSay\textspeech.h
?????文件?????????446??2013-05-15?08:43??TextToSay\TextToSay.pro
?????文件???????17259??2013-05-15?09:39??TextToSay\TextToSay.pro.user
?????文件????????2192??2013-05-15?09:25??TextToSay\ui_mainwindow.h
- 上一篇:逍遙公式驗證
- 下一篇:openCV 車牌分割
評論
共有 條評論