1 | // Copyright (C) 2022 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QTEXTTOSPEECHPLUGIN_SPEECHD_H |
5 | #define QTEXTTOSPEECHPLUGIN_SPEECHD_H |
6 | |
7 | #include "qtexttospeechplugin.h" |
8 | #include "qtexttospeechengine.h" |
9 | |
10 | #include <QtCore/QObject> |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | class QTextToSpeechSpeechdPlugin : public QObject, public QTextToSpeechPlugin |
15 | { |
16 | Q_OBJECT |
17 | Q_INTERFACES(QTextToSpeechPlugin) |
18 | Q_PLUGIN_METADATA(IID "org.qt-project.qt.speech.tts.plugin/6.0" |
19 | FILE "speechd_plugin.json") |
20 | |
21 | public: |
22 | QTextToSpeechEngine *createTextToSpeechEngine( |
23 | const QVariantMap ¶meters, |
24 | QObject *parent, |
25 | QString *errorString) const override; |
26 | }; |
27 | |
28 | QT_END_NAMESPACE |
29 | |
30 | #endif |
31 |