reprinted from http://hi.baidu.com/xchinux/blog/item/a665b545da8ea22dcffca3b0.html
先在机器上安装Microsoft Speech SDK 5.1,然后在控制面板中设置文字->语音默认语音为简体中文,在Qt代码中如下写:
(pro中加CONFIG += qaxcontainer)
#ifndef WIDGET_H
#define WIDGET_H
#include <QtGui>
#include <QtCore>
先在机器上安装Microsoft Speech SDK 5.1,然后在控制面板中设置文字->语音默认语音为简体中文,在Qt代码中如下写:
(pro中加CONFIG += qaxcontainer)
#ifndef WIDGET_H
#define WIDGET_H
#include <QtGui>
#include <QtCore>