Class TaskRequestBody
The request object accepted by POST /v1/tasks/run, /v1/tasks/stream
(as each entry of /v1/tasks/batch). It mirrors the audio.cpp CLI request-sequence
format: exactly one of AudioPath / AudioBase64 for audio
input; family-specific parameters go in Options (values serialize the way
the server's option map does: bools true/false, integers without decimals,
doubles invariant).
public sealed class TaskRequestBody
- Inheritance
-
TaskRequestBody
- Inherited Members
Properties
Artifacts
Input artifacts, delivered to the model in array order.
public IReadOnlyList<AudioArtifactInput>? Artifacts { get; set; }
Property Value
AudioBase64
Inline WAV bytes, Base64-encoded on the wire. Mutually exclusive with AudioPath; ignored by /v1/tasks/stream per the server contract.
public byte[]? AudioBase64 { get; set; }
Property Value
- byte[]
AudioPath
Server-local WAV path. Mutually exclusive with AudioBase64.
public string? AudioPath { get; set; }
Property Value
Language
Language code.
public string? Language { get; set; }
Property Value
Options
Family-specific parameters (the stringly-typed option map).
public Dictionary<string, string>? Options { get; set; }
Property Value
Text
Text input.
public string? Text { get; set; }
Property Value
VoiceId
Cached/native voice id.
public string? VoiceId { get; set; }
Property Value
VoiceRef
Voice reference: server-local path string or VoiceRefObject (path form only in CLI-shaped requests; object form is accepted too).
public object? VoiceRef { get; set; }
Property Value
Methods
Validate()
Validates the one-of audio rule.
public void Validate()