AppConfig loadConfigObject(const QJsonObject &root, const QString &sourceName=QStringLiteral("<in-memory config>"))
Loads a config object and applies the same fallback rules as file loading.
QString defaultModelPath()
Returns the default model artifact path used for fallback config values.
AppConfig defaultAppConfig()
Returns the built-in runtime defaults.
QStringList supportedConfigKeys()
Returns the supported dotted keys for config mutation.
bool applyConfigValue(AppConfig *config, QStringView key, const QString &value, QString *errorMessage=nullptr)
Applies a single dotted-key config value with validation.
bool saveConfig(const QString &path, const AppConfig &config, QString *errorMessage=nullptr)
Saves a config snapshot to disk, creating parent directories as needed.
QString defaultConfigPath()
Returns the default runtime config path.
AppConfig loadConfig(const QString &path, QString *errorMessage=nullptr)
Loads a config file and applies repo-defined fallback defaults.
QJsonObject configToJsonObject(const AppConfig &config)
Converts a config snapshot to the saved JSON object shape.
QByteArray serializeConfig(const AppConfig &config)
Serializes a config snapshot to indented JSON.
Top-level runtime configuration snapshot.
TranscriberConfig transcriber
Transcription backend settings.
AudioConfig audio
Audio capture settings.
ShortcutConfig shortcut
Global shortcut settings.
QString logLevel
Qt logging threshold accepted by the runtime logger setup.
Audio capture configuration passed to the recorder.
int sampleRate
Preferred sample rate requested from the capture device.
int channels
Preferred channel count requested from the capture device.
double minimumSeconds
Minimum recording duration required before transcription is attempted.
QString deviceId
Optional Qt multimedia device identifier. Empty selects the default input.
Global shortcut registration settings.
QString actionFriendly
Human-readable action name shown by KDE tooling.
QString actionUnique
Stable action identifier used for the push-to-talk action.
QString componentFriendly
Human-readable component name shown by KDE tooling.
QString sequence
Shortcut sequence accepted by QKeySequence parsing.
QString componentUnique
Stable KDE component identifier used with KGlobalAccel.
Transcription runtime configuration.
QString language
Language code passed to whisper.cpp.
int threads
Number of worker threads. 0 means auto-detect.
QString modelPath
Filesystem path to a model package, manifest, or raw compatibility artifact.
bool translate
When true, translate speech to English instead of transcribing as-is.
bool warmupOnStart
When true, initialize the backend during service startup.