KTextAddons

voskspeechtotextplugin.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "speechtotext/speechtotextplugin.h"
10class VoskSpeechToTextDevice;
11class VoskSpeechToTextPlugin : public TextSpeechToText::SpeechToTextPlugin
12{
14public:
15 explicit VoskSpeechToTextPlugin(QObject *parent = nullptr);
16 ~VoskSpeechToTextPlugin() override;
17
18 void speechToText() override;
19
20 [[nodiscard]] int sampleRate() const override;
21
22 [[nodiscard]] QIODevice *audioDevice() const override;
23
24 [[nodiscard]] bool loadSettings() override;
25 void clear() override;
26
27private:
28 VoskSpeechToTextDevice *const mDevice;
29};
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:49:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.