KTextAddons

speechtotextplugin.cpp
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "speechtotextplugin.h"
8using namespace TextSpeechToText;
9
10class TextSpeechToText::SpeechToTextPluginPrivate
11{
12public:
13 QString mResult;
14 QString mDefaultLanguage;
15};
16
17SpeechToTextPlugin::SpeechToTextPlugin(QObject *parent)
18 : QObject{parent}
19 , d(new TextSpeechToText::SpeechToTextPluginPrivate)
20{
21}
22
23SpeechToTextPlugin::~SpeechToTextPlugin() = default;
24
25QString SpeechToTextPlugin::result() const
26{
27 return d->mResult;
28}
29
30QString SpeechToTextPlugin::defaultLanguage() const
31{
32 return d->mDefaultLanguage;
33}
34
35void SpeechToTextPlugin::setDefaultLanguage(const QString &language)
36{
37 d->mDefaultLanguage = language;
38}
39
40#include "moc_speechtotextplugin.cpp"
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.