KTextAddons

whisperspeechtotextclient.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 WhisperSpeechToTextClient : public TextSpeechToText::SpeechToTextClient
12{
14 Q_PLUGIN_METADATA(IID "org.kde.texttospeech.whisper")
16public:
17 explicit WhisperSpeechToTextClient(QObject *parent = nullptr);
18 ~WhisperSpeechToTextClient() 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};
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 Fri Dec 20 2024 11:49:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.