File indexing completed on 2024-12-22 04:28:24
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "whisperspeechtotextclient.h" 0007 #include "whisperspeechtotextplugin.h" 0008 #include <KLocalizedString> 0009 0010 WhisperSpeechToTextClient::WhisperSpeechToTextClient(QObject *parent) 0011 : TextSpeechToText::SpeechToTextClient{parent} 0012 { 0013 } 0014 0015 WhisperSpeechToTextClient::~WhisperSpeechToTextClient() = default; 0016 0017 QString WhisperSpeechToTextClient::name() const 0018 { 0019 return QStringLiteral("whisper"); 0020 } 0021 0022 QString WhisperSpeechToTextClient::translatedName() const 0023 { 0024 return i18n("Whisper"); 0025 } 0026 0027 TextSpeechToText::SpeechToTextClient::EngineType WhisperSpeechToTextClient::engineType() const 0028 { 0029 return TextSpeechToText::SpeechToTextClient::Locale; 0030 } 0031 0032 TextSpeechToText::SpeechToTextPlugin *WhisperSpeechToTextClient::createTextToSpeech() 0033 { 0034 return new WhisperSpeechToTextPlugin; 0035 } 0036 0037 #include "moc_whisperspeechtotextclient.cpp"