24 UnsupportedModelPackageVersion,
26 IncompatibleModelPackage,
29 AudioNormalizationFailed,
50 [[nodiscard]]
bool isOk()
const {
return code == RuntimeErrorCode::None; }
One normalized streaming audio unit passed into a transcription session.
int sampleRate
Sample rate of the chunk payload.
std::vector< float > samples
Mono float32 samples for this chunk.
int channels
Channel count of the chunk payload.
std::int64_t streamOffsetFrames
Start frame offset of this chunk within the utterance stream.
bool isValid() const
Reports whether the chunk contains usable audio samples.
Product-owned backend/runtime metadata surfaced to app code.
bool supportsAutoLanguage
true when the backend can auto-detect the spoken language.
QStringList supportedLanguages
Supported language codes accepted by this backend.
bool supportsTranslation
true when the backend supports translation mode.
QString backendName
Stable backend identifier used in diagnostics.
bool supportsWarmup
true when warmup is a supported preflight operation.
Normalized runtime audio payload.
std::vector< float > samples
Mono float32 samples ready for runtime ingestion.
bool isValid() const
Reports whether the normalized payload contains any samples.
int sampleRate
Sample rate of the normalized audio. Kept at 16 kHz.
int channels
Channel count of the normalized audio. Kept at one channel.
Structured runtime-layer failure with user-facing and diagnostic text.
bool isOk() const
Reports whether this value represents success.
QString detail
Optional extra context for diagnostics.
QString message
Human-readable summary safe to surface in logs or UI.
RuntimeErrorCode code
Stable error category for programmatic handling and tests.
One transcript event produced by a backend session.
std::int64_t startMs
Optional inclusive event start timestamp in milliseconds.
TranscriptEventKind kind
Whether this event is partial or final.
std::int64_t endMs
Optional exclusive event end timestamp in milliseconds.
QString text
Transcript text payload for this event.
Result of one streaming session operation.
bool isOk() const
Reports whether this update completed without a runtime error.
RuntimeError error
Structured runtime failure when the operation did not succeed.
std::vector< TranscriptEvent > events
Zero or more transcript events emitted by the operation.
Result of a single transcription attempt.
RuntimeError error
Structured runtime failure when success is false.
bool success
true when transcription completed successfully.
QString text
Final recognized text when success is true.
TranscriptEventKind
Stable transcript event categories emitted by streaming sessions.
RuntimeErrorCode
Stable categories for runtime-layer failures.