KTextAddons

googlespeechtotextclient.cpp
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#include "googlespeechtotextclient.h"
7#include "googlespeechtotextplugin.h"
8#include <KLocalizedString>
9
10GoogleSpeechToTextClient::GoogleSpeechToTextClient(QObject *parent)
11 : TextSpeechToText::SpeechToTextClient{parent}
12{
13}
14
15GoogleSpeechToTextClient::~GoogleSpeechToTextClient() = default;
16
17QString GoogleSpeechToTextClient::name() const
18{
19 return QStringLiteral("google");
20}
21
22QString GoogleSpeechToTextClient::translatedName() const
23{
24 return i18n("Google");
25}
26
27TextSpeechToText::SpeechToTextClient::EngineType GoogleSpeechToTextClient::engineType() const
28{
29 return TextSpeechToText::SpeechToTextClient::Network;
30}
31
32TextSpeechToText::SpeechToTextPlugin *GoogleSpeechToTextClient::createTextToSpeech()
33{
34 return new GoogleSpeechToTextPlugin;
35}
36
37#include "moc_googlespeechtotextclient.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 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.