8#include "textspeechtotext_export.h"
11namespace TextSpeechToText
17class SpeechToTextPluginPrivate;
18class TEXTSPEECHTOTEXT_EXPORT SpeechToTextPlugin :
public QObject
32 explicit SpeechToTextPlugin(
QObject *parent =
nullptr);
33 ~SpeechToTextPlugin()
override;
35 [[nodiscard]]
QString result()
const;
37 virtual void speechToText() = 0;
39 [[nodiscard]]
virtual int sampleRate()
const = 0;
41 [[nodiscard]]
QString defaultLanguage()
const;
42 [[nodiscard]]
virtual QIODevice *audioDevice()
const = 0;
44 void setDefaultLanguage(
const QString &language);
46 [[nodiscard]]
virtual bool loadSettings() = 0;
48 virtual void clear() = 0;
51 void speechToTextDone(
const QString &result);
54 std::unique_ptr<SpeechToTextPluginPrivate>
const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:38 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.