QT应用编程: 调用系统语音引擎完成文字转语音播报

一、环境介绍

操作系统介绍:win10 64位

QT版本: 5.12.6

二、示例代码

在工程文件里加上代码: QT += texttospeech

QTextToSpeech *m_speech=new QTextToSpeech;

//异步朗读文字
m_speech->say("Hello!,老吕,发工资啦");

猜你喜欢

转载自blog.csdn.net/xiaolong1126626497/article/details/111565764