Table of Contents

Class TaskRequestBody

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

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

IReadOnlyList<AudioArtifactInput>

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

string

Language

Language code.

public string? Language { get; set; }

Property Value

string

Options

Family-specific parameters (the stringly-typed option map).

public Dictionary<string, string>? Options { get; set; }

Property Value

Dictionary<string, string>

Text

Text input.

public string? Text { get; set; }

Property Value

string

VoiceId

Cached/native voice id.

public string? VoiceId { get; set; }

Property Value

string

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

object

Methods

Validate()

Validates the one-of audio rule.

public void Validate()