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
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#include <QtCore/QLoggingCategory>
12
13QT_BEGIN_NAMESPACE
14
15//Q_DECLARE_LOGGING_CATEGORY(lcSpeechTtsSpeechd)
16
17class QTextToSpeechSpeechdPlugin : 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 "speechd_plugin.json")
23
24public:
25 QTextToSpeechEngine *createTextToSpeechEngine(
26 const QVariantMap &parameters,
27 QObject *parent,
28 QString *errorString) const override;
29};
30
31QT_END_NAMESPACE
32
33#endif
34

source code of qtspeech/src/plugins/tts/speechdispatcher/qtexttospeech_speechd_plugin.h