34 lines
984 B
C++
34 lines
984 B
C++
|
|
/**********************************************************************************
|
|
* @file QTtsPluginIflytek.h
|
|
* @brief 科大讯飞TTS封装为QtSpeech插件
|
|
* @author yikenan
|
|
* @versiong 1.0
|
|
* @date 2020/10/26
|
|
**********************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QLoggingCategory>
|
|
|
|
#include "qtexttospeechplugin.h"
|
|
#include "qtexttospeechengine.h"
|
|
|
|
namespace iot_app
|
|
{
|
|
|
|
class QTtsPluginIflytek : public QObject, public QTextToSpeechPlugin
|
|
{
|
|
Q_OBJECT
|
|
Q_INTERFACES( QTextToSpeechPlugin )
|
|
Q_PLUGIN_METADATA( IID "org.qt-project.qt.speech.tts.plugin/5.0"
|
|
FILE "qtts_kbd_iflytek.json" )
|
|
|
|
public:
|
|
QTextToSpeechEngine *createTextToSpeechEngine( const QVariantMap &mapParameters,
|
|
QObject *pParent, QString *pStrError ) const override;
|
|
};
|
|
|
|
} //< namespace iot_app
|