Table of Contents

Class AlignmentResult

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

Result of POST /v1/audio/alignments.

public sealed class AlignmentResult
Inheritance
AlignmentResult
Inherited Members

Properties

Language

Language, when reported.

public string? Language { get; }

Property Value

string

Text

Aligned text, when echoed back.

public string? Text { get; }

Property Value

string

Timing

Run timing.

public AudioCppTiming? Timing { get; }

Property Value

AudioCppTiming

Words

Word timestamps in seconds plus sample offsets.

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 AlignmentResult Parse(string? json)

Parameters

json string

The raw JSON response body.

Returns

AlignmentResult

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