Class SpeechJsonResult
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
Format
Format tag; the server writes wav.
public string? Format { get; }
Property Value
Timing
Run timing (wall_ms, audio_duration_ms, rtf).
public AudioCppTiming? Timing { get; }
Property Value
Methods
Parse(string?)
Parses a cached response JSON (a disk cache hit rebuilds the result).
public static SpeechJsonResult Parse(string? json)
Parameters
jsonstringThe raw JSON response body.
Returns
- SpeechJsonResult
The parsed result; throws JsonException on null, invalid JSON, or a non-object root.