Table of Contents

Class TaskResult

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

A result of POST /v1/tasks/run, /v1/tasks/stream or a recipe run.

public sealed class TaskResult
Inheritance
TaskResult
Inherited Members

Properties

Artifacts

Output artifacts; feed them back via Artifacts.

public IReadOnlyList<AudioArtifact>? Artifacts { get; }

Property Value

IReadOnlyList<AudioArtifact>

Audio

Primary audio output, decoded from the Base64 WAV on the wire.

public byte[]? Audio { get; }

Property Value

byte[]

Channels

Channel count of Audio.

public int? Channels { get; }

Property Value

int?

Language

Language reported with Text.

public string? Language { get; }

Property Value

string

NamedAudioOutputs

Additional named audio outputs.

public IReadOnlyList<NamedAudioOutput>? NamedAudioOutputs { get; }

Property Value

IReadOnlyList<NamedAudioOutput>

SampleRate

Sample rate of Audio.

public int? SampleRate { get; }

Property Value

int?

Segments

Speech segments, when the model produced them.

public IReadOnlyList<AudioCppSegment>? Segments { get; }

Property Value

IReadOnlyList<AudioCppSegment>

SpeakerTurns

Speaker turns, when the model diarized.

public IReadOnlyList<AudioCppSpeakerTurn>? SpeakerTurns { get; }

Property Value

IReadOnlyList<AudioCppSpeakerTurn>

Text

Transcript or generated text, when the task produced one.

public string? Text { get; }

Property Value

string

Timing

Run timing.

public AudioCppTiming? Timing { get; }

Property Value

AudioCppTiming

Words

Word timestamps, when the model aligned words.

public IReadOnlyList<AudioCppWord>? Words { get; }

Property Value

IReadOnlyList<AudioCppWord>

Methods

Parse(string?)

Parses a cached response JSON (a disk cache hit rebuilds the result).

public static TaskResult Parse(string? json)

Parameters

json string

The raw JSON response body.

Returns

TaskResult

The parsed result; throws JsonException on null, invalid JSON, or a non-object root.