KTextAddons

voskspeechtotextclient.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "speechtotext/speechtotextclient.h"
10
11class VoskSpeechToTextClient : public TextSpeechToText::SpeechToTextClient
12{
14 Q_PLUGIN_METADATA(IID "org.kde.texttospeech.vosk")
16public:
17 explicit VoskSpeechToTextClient(QObject *parent = nullptr);
18 ~VoskSpeechToTextClient() override;
19
20 [[nodiscard]] QString name() const override;
21 [[nodiscard]] QString translatedName() const override;
22
23 [[nodiscard]] TextSpeechToText::SpeechToTextClient::EngineType engineType() const override;
24
25 [[nodiscard]] TextSpeechToText::SpeechToTextPlugin *createTextToSpeech() override;
26
27 [[nodiscard]] bool hasConfigurationDialog() const override;
28 [[nodiscard]] bool showConfigureDialog(QWidget *parentWidget) override;
29};
The SpeechToTextClient class.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.