mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
Loading...
Searching...
No Matches
runtimeselector.h File Reference

Runtime-selection policy for product-owned and legacy transcription engines. More...

#include "config.h"
#include "transcription/modelpackage.h"
#include <cstdint>
#include <optional>

Go to the source code of this file.

Classes

struct  RuntimeSelection
 Result of selecting a runtime for a configured model path. More...
 

Enumerations

enum class  RuntimeSelectionKind : std::uint8_t { CpuReference , LegacyWhisper }
 Stable runtime families selectable by the app-owned factory. More...
 

Functions

RuntimeSelection selectRuntimeForConfig (const TranscriberConfig &config)
 Chooses the runtime implementation for a transcription config.
 

Detailed Description

Runtime-selection policy for product-owned and legacy transcription engines.

Definition in file runtimeselector.h.

Enumeration Type Documentation

◆ RuntimeSelectionKind

enum class RuntimeSelectionKind : std::uint8_t
strong

Stable runtime families selectable by the app-owned factory.

Definition at line 17 of file runtimeselector.h.

Function Documentation

◆ selectRuntimeForConfig()

RuntimeSelection selectRuntimeForConfig ( const TranscriberConfig config)

Chooses the runtime implementation for a transcription config.

Parameters
configRuntime configuration containing the model path.
Returns
Product-owned selection result with a diagnostic reason.