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 
0007 #include "googlespeechtotextplugin.h"
0008 
0009 GoogleSpeechToTextPlugin::GoogleSpeechToTextPlugin(QObject *parent)
0010     : TextSpeechToText::SpeechToTextPlugin{parent}
0011 {
0012 }
0013 
0014 GoogleSpeechToTextPlugin::~GoogleSpeechToTextPlugin() = default;
0015 
0016 void GoogleSpeechToTextPlugin::speechToText()
0017 {
0018     // TODO
0019 }
0020 
0021 int GoogleSpeechToTextPlugin::sampleRate() const
0022 {
0023     return 16000;
0024 }
0025 
0026 QIODevice *GoogleSpeechToTextPlugin::audioDevice() const
0027 {
0028     return {};
0029 }
0030 
0031 bool GoogleSpeechToTextPlugin::loadSettings()
0032 {
0033     // TODO
0034     return false;
0035 }
0036 
0037 void GoogleSpeechToTextPlugin::clear()
0038 {
0039     // TODO
0040 }
0041 
0042 #include "moc_googlespeechtotextplugin.cpp"