Table of Contents

Class TaskStreamEventBody

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

One event of a task stream (both the JSON events[] rows and the SSE task.stream.event payload).

public sealed class TaskStreamEventBody
Inheritance
TaskStreamEventBody
Inherited Members

Properties

Artifacts

Artifacts carried by this event, when the build streams them.

public IReadOnlyList<AudioArtifact>? Artifacts { get; }

Property Value

IReadOnlyList<AudioArtifact>

Audio

WAV bytes of this event's audio.

public byte[]? Audio { get; }

Property Value

byte[]

IsFinal

Whether this event is the final one.

public bool IsFinal { get; }

Property Value

bool

Language

Language of the partial text.

public string? Language { get; }

Property Value

string

NamedAudioOutputs

Named audio outputs of this event (WAV, format=wav).

public IReadOnlyList<NamedAudioOutput>? NamedAudioOutputs { get; }

Property Value

IReadOnlyList<NamedAudioOutput>

PartialText

Text produced since the previous event, with its language.

public string? PartialText { get; }

Property Value

string

PartialTextSnapshot

Whole provisional text to replace, not append.

public string? PartialTextSnapshot { get; }

Property Value

string

SpeakerTurns

Speaker turns (diarization runs).

public IReadOnlyList<AudioCppSpeakerTurn>? SpeakerTurns { get; }

Property Value

IReadOnlyList<AudioCppSpeakerTurn>

WordTimestamps

Word timestamps attached to this event.

public IReadOnlyList<AudioCppWord>? WordTimestamps { get; }

Property Value

IReadOnlyList<AudioCppWord>