MCPcopy Create free account
hub / github.com/KDE/kdenlive / getInstalledModels

Method getInstalledModels

src/pythoninterfaces/saminterface.cpp:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47const QStringList SamInterface::getInstalledModels()
48{
49 QString modelDirectory = modelFolder();
50 if (modelDirectory.isEmpty()) {
51 qDebug() << "=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER";
52 return {};
53 }
54 QDir modelsFolder(modelDirectory);
55 QStringList installedModels;
56 QStringList files = modelsFolder.entryList({QStringLiteral("*.pt")}, QDir::Files);
57 for (auto &f : files) {
58 installedModels << modelsFolder.absoluteFilePath(f);
59 }
60 return installedModels;
61}
62
63bool SamInterface::installNewModel(const QString &)
64{

Callers 9

parseScriptFeedbackMethod · 0.45
updateEngineMethod · 0.45
SpeechDialogMethod · 0.45
doDeleteSamModelsMethod · 0.45
reloadWhisperModelsMethod · 0.45
downloadSamModelsMethod · 0.45
reloadSamModelsMethod · 0.45

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected