File indexing completed on 2024-12-22 04:28:22

0001 /*
0002   SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #include "googlespeechtotextclient.h"
0007 #include "googlespeechtotextplugin.h"
0008 #include <KLocalizedString>
0009 
0010 GoogleSpeechToTextClient::GoogleSpeechToTextClient(QObject *parent)
0011     : TextSpeechToText::SpeechToTextClient{parent}
0012 {
0013 }
0014 
0015 GoogleSpeechToTextClient::~GoogleSpeechToTextClient() = default;
0016 
0017 QString GoogleSpeechToTextClient::name() const
0018 {
0019     return QStringLiteral("google");
0020 }
0021 
0022 QString GoogleSpeechToTextClient::translatedName() const
0023 {
0024     return i18n("Google");
0025 }
0026 
0027 TextSpeechToText::SpeechToTextClient::EngineType GoogleSpeechToTextClient::engineType() const
0028 {
0029     return TextSpeechToText::SpeechToTextClient::Network;
0030 }
0031 
0032 TextSpeechToText::SpeechToTextPlugin *GoogleSpeechToTextClient::createTextToSpeech()
0033 {
0034     return new GoogleSpeechToTextPlugin;
0035 }
0036 
0037 #include "moc_googlespeechtotextclient.cpp"