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

0001 /*
0002   SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "whisperspeechtotextplugin.h"
0008 
0009 WhisperSpeechToTextPlugin::WhisperSpeechToTextPlugin(QObject *parent)
0010     : TextSpeechToText::SpeechToTextPlugin{parent}
0011 {
0012 }
0013 
0014 WhisperSpeechToTextPlugin::~WhisperSpeechToTextPlugin() = default;
0015 
0016 void WhisperSpeechToTextPlugin::speechToText()
0017 {
0018     // TODO
0019 }
0020 
0021 int WhisperSpeechToTextPlugin::sampleRate() const
0022 {
0023     return 16000;
0024 }
0025 
0026 QIODevice *WhisperSpeechToTextPlugin::audioDevice() const
0027 {
0028     return nullptr;
0029 }
0030 
0031 bool WhisperSpeechToTextPlugin::loadSettings()
0032 {
0033     return false;
0034     // TODO
0035 }
0036 
0037 void WhisperSpeechToTextPlugin::clear()
0038 {
0039     // TODO
0040 }
0041 
0042 #include "moc_whisperspeechtotextplugin.cpp"