File indexing completed on 2024-06-02 04:47:20
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "speechtotextplugin.h" 0008 using namespace TextSpeechToText; 0009 0010 class TextSpeechToText::SpeechToTextPluginPrivate 0011 { 0012 public: 0013 QString mResult; 0014 QString mDefaultLanguage; 0015 }; 0016 0017 SpeechToTextPlugin::SpeechToTextPlugin(QObject *parent) 0018 : QObject{parent} 0019 , d(new TextSpeechToText::SpeechToTextPluginPrivate()) 0020 { 0021 } 0022 0023 SpeechToTextPlugin::~SpeechToTextPlugin() = default; 0024 0025 QString SpeechToTextPlugin::result() const 0026 { 0027 return d->mResult; 0028 } 0029 0030 QString SpeechToTextPlugin::defaultLanguage() const 0031 { 0032 return d->mDefaultLanguage; 0033 } 0034 0035 void SpeechToTextPlugin::setDefaultLanguage(const QString &language) 0036 { 0037 d->mDefaultLanguage = language; 0038 } 0039 0040 #include "moc_speechtotextplugin.cpp"