|
mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
|
In-process native CPU transcription backend used as the product-owned reference runtime. More...
#include <cpureferencetranscriber.h>
Public Member Functions | |
| CpuReferenceTranscriber (TranscriberConfig config, std::shared_ptr< const TranscriptionModelHandle > model) | |
| Creates a mutable native CPU session from a loaded model handle. | |
| CpuReferenceTranscriber (const CpuReferenceTranscriber &)=delete | |
| CpuReferenceTranscriber & | operator= (const CpuReferenceTranscriber &)=delete |
| CpuReferenceTranscriber (CpuReferenceTranscriber &&)=delete | |
| CpuReferenceTranscriber & | operator= (CpuReferenceTranscriber &&)=delete |
| QString | backendName () const override |
| Returns the backend identifier for this live session. | |
| bool | warmup (RuntimeError *error=nullptr) override |
| Performs optional backend warmup for this session. | |
| TranscriptUpdate | pushAudioChunk (const AudioChunk &chunk) override |
| Ingests one normalized audio chunk into the live session. | |
| TranscriptUpdate | finish () override |
| Flushes the current utterance and emits any final transcript events. | |
| TranscriptUpdate | cancel () override |
| Requests cooperative cancellation of any active decode. | |
Public Member Functions inherited from TranscriptionSession | |
| TranscriptionSession (const TranscriptionSession &)=delete | |
| TranscriptionSession & | operator= (const TranscriptionSession &)=delete |
| TranscriptionSession (TranscriptionSession &&)=delete | |
| TranscriptionSession & | operator= (TranscriptionSession &&)=delete |
Static Public Member Functions | |
| static std::shared_ptr< const TranscriptionModelHandle > | loadModelHandle (const TranscriberConfig &config, RuntimeError *error=nullptr) |
| Loads an immutable native CPU model handle from a validated package. | |
| static std::unique_ptr< TranscriptionSession > | createSession (TranscriberConfig config, std::shared_ptr< const TranscriptionModelHandle > model) |
| Creates a mutable session from a generic app-owned model handle. | |
| static QString | backendNameStatic () |
| Returns the stable backend identifier used in diagnostics. | |
| static BackendCapabilities | capabilitiesStatic () |
| Returns static capability metadata for the native CPU runtime. | |
| static RuntimeDiagnostics | diagnosticsStatic () |
| Returns static runtime diagnostics for the native CPU runtime. | |
In-process native CPU transcription backend used as the product-owned reference runtime.
The Phase 5 reference path is intentionally narrow and deterministic. It owns its model parsing, session state, and transcript emission without exposing any third-party runtime handles to the rest of the app.
Definition at line 23 of file cpureferencetranscriber.h.
| CpuReferenceTranscriber::CpuReferenceTranscriber | ( | TranscriberConfig | config, |
| std::shared_ptr< const TranscriptionModelHandle > | model | ||
| ) |
Creates a mutable native CPU session from a loaded model handle.
| config | Runtime configuration copied into the session. |
| model | Shared immutable model handle created by the native CPU engine. |
|
overridevirtual |
Returns the backend identifier for this live session.
Implements TranscriptionSession.
|
static |
Returns the stable backend identifier used in diagnostics.
|
overridevirtual |
Requests cooperative cancellation of any active decode.
Implementations should stop in-flight backend work best-effort without using thread interruption.
Implements TranscriptionSession.
|
static |
Returns static capability metadata for the native CPU runtime.
|
static |
Creates a mutable session from a generic app-owned model handle.
| config | Runtime configuration copied into the session. |
| model | Shared immutable model handle. |
nullptr when the model type is incompatible.
|
static |
Returns static runtime diagnostics for the native CPU runtime.
|
overridevirtual |
Flushes the current utterance and emits any final transcript events.
Implements TranscriptionSession.
|
static |
Loads an immutable native CPU model handle from a validated package.
| config | Runtime configuration copied into the handle. |
| error | Optional output for model validation or load failures. |
|
overridevirtual |
Ingests one normalized audio chunk into the live session.
| chunk | Product-owned normalized audio chunk. |
Implements TranscriptionSession.
|
overridevirtual |
Performs optional backend warmup for this session.
| error | Optional destination for a structured failure reason. |
true if the session is ready for transcription, otherwise false. Implements TranscriptionSession.