7#include "libvoskspeechtotext_export.h"
8#include "voskdownloadlanguagejob.h"
9#include "voskspeechtotextinfo.h"
12class LIBVOSKSPEECHTOTEXT_EXPORT ManagerModelVoskSpeechToText :
public QObject
18 qint64 bytesReceived = -1;
19 qint64 bytesTotal = -1;
21 explicit ManagerModelVoskSpeechToText(
QObject *parent =
nullptr);
22 ~ManagerModelVoskSpeechToText()
override;
24 static ManagerModelVoskSpeechToText *self();
26 void downloadListModels();
31 void loadModelList(
const QString &fileName);
33 void downloadLanguage(
const VoskDownloadLanguageJob::DownloadLanguageInfo &info);
34 [[nodiscard]]
bool needDownloadModelList()
const;
36 void errorText(
const QString &str);
37 void progress(
const ManagerModelVoskSpeechToText::ProgressInfo &info);
39 void downLoadModelListDone();
42 LIBVOSKSPEECHTOTEXT_NO_EXPORT
void parseListModel(
const QJsonArray &arrays);
45Q_DECLARE_TYPEINFO(ManagerModelVoskSpeechToText::ProgressInfo, Q_MOVABLE_TYPE);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.