|
mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
|
Mutable per-session transcription interface. More...
#include <transcriptionengine.h>
Public Member Functions | |
| TranscriptionSession (const TranscriptionSession &)=delete | |
| TranscriptionSession & | operator= (const TranscriptionSession &)=delete |
| TranscriptionSession (TranscriptionSession &&)=delete | |
| TranscriptionSession & | operator= (TranscriptionSession &&)=delete |
| virtual QString | backendName () const =0 |
| Returns the backend identifier for this live session. | |
| virtual bool | warmup (RuntimeError *error=nullptr)=0 |
| Performs optional backend warmup for this session. | |
| virtual TranscriptUpdate | pushAudioChunk (const AudioChunk &chunk)=0 |
| Ingests one normalized audio chunk into the live session. | |
| virtual TranscriptUpdate | finish ()=0 |
| Flushes the current utterance and emits any final transcript events. | |
| virtual TranscriptUpdate | cancel ()=0 |
| Requests cooperative cancellation of any active decode. | |
Mutable per-session transcription interface.
Sessions own backend state that may be warmed up, reused, and kept isolated per thread or request flow.
Definition at line 58 of file transcriptionengine.h.
|
pure virtual |
Returns the backend identifier for this live session.
Implemented in CpuReferenceTranscriber, and WhisperCppTranscriber.
|
pure virtual |
Requests cooperative cancellation of any active decode.
Implementations should stop in-flight backend work best-effort without using thread interruption.
Implemented in CpuReferenceTranscriber, and WhisperCppTranscriber.
|
pure virtual |
Flushes the current utterance and emits any final transcript events.
Implemented in CpuReferenceTranscriber, and WhisperCppTranscriber.
|
pure virtual |
Ingests one normalized audio chunk into the live session.
| chunk | Product-owned normalized audio chunk. |
Implemented in CpuReferenceTranscriber, and WhisperCppTranscriber.
|
pure virtual |
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. Implemented in CpuReferenceTranscriber, and WhisperCppTranscriber.