Table of Contents

Class SpeechJsonResult

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

Parsed response_format=json speech response.

public sealed class SpeechJsonResult
Inheritance
SpeechJsonResult
Inherited Members

Properties

Audio

Decoded WAV bytes.

public byte[] Audio { get; }

Property Value

byte[]

AudioBase64

Base64 WAV text as delivered.

public string AudioBase64 { get; }

Property Value

string

Format

Format tag; the server writes wav.

public string? Format { get; }

Property Value

string

Timing

Run timing (wall_ms, audio_duration_ms, rtf).

public AudioCppTiming? Timing { get; }

Property Value

AudioCppTiming

Methods

Parse(string?)

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

public static SpeechJsonResult Parse(string? json)

Parameters

json string

The raw JSON response body.

Returns

SpeechJsonResult

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