mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
Loading...
Searching...
No Matches
runtimeselector.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
5
6#include <cstdint>
7#include <optional>
8
17enum class RuntimeSelectionKind : std::uint8_t {
18 CpuReference,
19 LegacyWhisper,
20};
21
27 RuntimeSelectionKind kind = RuntimeSelectionKind::CpuReference;
29 QString reason;
31 std::optional<ValidatedModelPackage> inspectedPackage;
32};
33
Runtime configuration types, defaults, and JSON loading entrypoints.
Product-owned model package manifest and validated package value types.
RuntimeSelection selectRuntimeForConfig(const TranscriberConfig &config)
Chooses the runtime implementation for a transcription config.
RuntimeSelectionKind
Stable runtime families selectable by the app-owned factory.
Result of selecting a runtime for a configured model path.
std::optional< ValidatedModelPackage > inspectedPackage
Best-effort inspected package used to make the decision.
QString reason
Human-readable reason suitable for diagnostics.
RuntimeSelectionKind kind
Chosen runtime implementation.
Transcription runtime configuration.
Definition config.h:62