| 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_FLITE_H |
| 5 | #define QTEXTTOSPEECHPLUGIN_FLITE_H |
| 6 | |
| 7 | #include "qtexttospeechplugin.h" |
| 8 | #include "qtexttospeechengine.h" |
| 9 | |
| 10 | #include <QtCore/QObject> |
| 11 | #include <QtCore/QLoggingCategory> |
| 12 | |
| 13 | QT_BEGIN_NAMESPACE |
| 14 | |
| 15 | Q_DECLARE_LOGGING_CATEGORY(lcSpeechTtsFlite) |
| 16 | |
| 17 | class QTextToSpeechFlitePlugin : public QObject, public QTextToSpeechPlugin |
| 18 | { |
| 19 | Q_OBJECT |
| 20 | Q_INTERFACES(QTextToSpeechPlugin) |
| 21 | Q_PLUGIN_METADATA(IID "org.qt-project.qt.speech.tts.plugin/6.0" |
| 22 | FILE "flite_plugin.json") |
| 23 | |
| 24 | public: |
| 25 | QTextToSpeechEngine *createTextToSpeechEngine( |
| 26 | const QVariantMap ¶meters, |
| 27 | QObject *parent, |
| 28 | QString *errorString) const override; |
| 29 | }; |
| 30 | |
| 31 | QT_END_NAMESPACE |
| 32 | |
| 33 | #endif |
| 34 |
