• 大小: 1.18MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-27
  • 语言: 其他
  • 标签:

资源简介

基本实现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

评论

共有 条评论

相关资源