Class TaskResult
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
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
NamedAudioOutputs
Additional named audio outputs.
public IReadOnlyList<NamedAudioOutput>? NamedAudioOutputs { get; }
Property Value
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
SpeakerTurns
Speaker turns, when the model diarized.
public IReadOnlyList<AudioCppSpeakerTurn>? SpeakerTurns { get; }
Property Value
Text
Transcript or generated text, when the task produced one.
public string? Text { get; }
Property Value
Timing
Run timing.
public AudioCppTiming? Timing { get; }
Property Value
Words
Word timestamps, when the model aligned words.
public IReadOnlyList<AudioCppWord>? Words { get; }
Property Value
Methods
Parse(string?)
Parses a cached response JSON (a disk cache hit rebuilds the result).
public static TaskResult Parse(string? json)
Parameters
jsonstringThe raw JSON response body.
Returns
- TaskResult
The parsed result; throws JsonException on null, invalid JSON, or a non-object root.