Table of Contents

Class ModelLoadRequest

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

Body of POST /v1/models/load (builds with native model management).

public sealed class ModelLoadRequest
Inheritance
ModelLoadRequest
Inherited Members

Properties

Device

Backend device index override.

public int? Device { get; set; }

Property Value

int?

Family

Model family, for example kokoro_tts.

public string? Family { get; set; }

Property Value

string

Id

Id to register the model under. Required.

public string? Id { get; set; }

Property Value

string

LoadOptions

Loader options (stringly-typed like other option maps).

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

Property Value

Dictionary<string, string>

Mode

Run mode: offline or streaming.

public string? Mode { get; set; }

Property Value

string

PackageId

Catalog package id to resolve. Mutually exclusive with Path.

public string? PackageId { get; set; }

Property Value

string

Path

Server-local path to the model file or directory. Mutually exclusive with PackageId.

public string? Path { get; set; }

Property Value

string

SessionOptions

Session options (stringly-typed like other option maps).

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

Property Value

Dictionary<string, string>

Task

Task, for example tts or asr.

public string? Task { get; set; }

Property Value

string

Methods

Validate()

Validates the request, throwing when Path and PackageId are both set or neither is.

public void Validate()