KTextAddons

whisperspeechtotextclient.cpp
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#include "whisperspeechtotextclient.h"
7#include "whisperspeechtotextplugin.h"
8#include <KLocalizedString>
9
10WhisperSpeechToTextClient::WhisperSpeechToTextClient(QObject *parent)
11 : TextSpeechToText::SpeechToTextClient{parent}
12{
13}
14
15WhisperSpeechToTextClient::~WhisperSpeechToTextClient() = default;
16
17QString WhisperSpeechToTextClient::name() const
18{
19 return QStringLiteral("whisper");
20}
21
22QString WhisperSpeechToTextClient::translatedName() const
23{
24 return i18n("Whisper");
25}
26
27TextSpeechToText::SpeechToTextClient::EngineType WhisperSpeechToTextClient::engineType() const
28{
29 return TextSpeechToText::SpeechToTextClient::Locale;
30}
31
32TextSpeechToText::SpeechToTextPlugin *WhisperSpeechToTextClient::createTextToSpeech()
33{
34 return new WhisperSpeechToTextPlugin;
35}
36
37#include "moc_whisperspeechtotextclient.cpp"
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:28 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.