Thread-hosted wrapper around the configured transcription backend.
More...
#include <transcriptionworker.h>
Thread-hosted wrapper around the configured transcription backend.
This QObject is intended to live on the service-owned transcription thread. It converts backend results into Qt signals that can be delivered back to the main-thread service object.
Definition at line 22 of file transcriptionworker.h.
◆ TranscriptionWorker() [1/2]
| TranscriptionWorker::TranscriptionWorker |
( |
std::shared_ptr< const TranscriptionEngine > |
engine, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Creates a worker with a shared immutable engine.
- Parameters
-
| engine | Shared engine used to lazily create the live session. |
| parent | Optional QObject parent. |
◆ TranscriptionWorker() [2/2]
| TranscriptionWorker::TranscriptionWorker |
( |
std::unique_ptr< TranscriptionSession > |
transcriber, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Creates a worker around an already-constructed session.
- Parameters
-
| transcriber | Owned session implementation. |
| parent | Optional QObject parent. |
◆ backendName()
| QString TranscriptionWorker::backendName |
( |
| ) |
const |
Returns the active transcription backend name.
- Returns
- Human-readable backend identifier.
◆ capabilities()
Returns the active runtime capability snapshot.
- Returns
- Capability data for diagnostics and orchestration decisions.
◆ runtimeDiagnostics()
Returns runtime diagnostics for the active backend instance.
- Returns
- Runtime diagnostics snapshot including the loaded model description.
◆ transcribeRecordingCompat()
| void TranscriptionWorker::transcribeRecordingCompat |
( |
const Recording & |
recording | ) |
|
Transcribes a captured recording and emits a result signal.
- Parameters
-
| recording | Captured audio payload to transcribe. |
◆ transcriptionFailed
| void TranscriptionWorker::transcriptionFailed |
( |
const RuntimeError & |
error | ) |
|
|
signal |
Emitted when transcription fails.
- Parameters
-
| error | Structured failure description. |
◆ transcriptionReady
| void TranscriptionWorker::transcriptionReady |
( |
const QString & |
text | ) |
|
|
signal |
Emitted when transcription succeeds.
- Parameters
-
| text | Final transcribed text. |
◆ warmup()
| bool TranscriptionWorker::warmup |
( |
RuntimeError * |
error = nullptr | ) |
|
Eagerly initializes backend state before the first real transcription.
- Parameters
-
| error | Optional output for warmup failures. |
- Returns
true when the backend is ready for use.
The documentation for this class was generated from the following file: