KTextAddons

speechtotextmanager.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7#include "textspeechtotext_export.h"
8#include <QObject>
9namespace TextSpeechToText
10{
11class SpeechToTextPlugin;
12/**
13 * @brief The SpeechToTextManager class
14 * @author Laurent Montel <montel@kde.org>
15 */
16class TEXTSPEECHTOTEXT_EXPORT SpeechToTextManager : public QObject
17{
18 Q_OBJECT
19public:
20 explicit SpeechToTextManager(QObject *parent = nullptr);
21 ~SpeechToTextManager() override;
22
23 void switchEngine(const QString &engineName);
24
25 static SpeechToTextManager *self();
26
27 void speechToText();
28
29 [[nodiscard]] bool hasEngine() const;
30
31Q_SIGNALS:
32 void textToSpeechDone(const QString &result);
33
34private:
35 TEXTSPEECHTOTEXT_NO_EXPORT void deletePlugin();
36 TEXTSPEECHTOTEXT_NO_EXPORT void initializeInput();
37 class SpeechToTextPluginPrivate;
38 std::unique_ptr<SpeechToTextPluginPrivate> const d;
39};
40}
The SpeechToTextManager class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.