Table of Contents

Class TranscriptionInputBase

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

Input for the transcription routes: either a server-local WAV path (AudioPath, sent as JSON) or uploaded audio bytes (AudioFile + AudioFileName, sent as multipart). Exactly one form must be set.

public class TranscriptionInputBase
Inheritance
TranscriptionInputBase
Derived
Inherited Members

Properties

AudioFile

Audio bytes to upload (multipart form). The client disposes this stream when the request completes.

public Stream? AudioFile { get; set; }

Property Value

Stream

AudioFileName

Filename reported for AudioFile; must name a WAV for most builds.

public string? AudioFileName { get; set; }

Property Value

string

AudioPath

Server-local WAV path (JSON body form).

public string? AudioPath { get; set; }

Property Value

string

BusyTimeoutMs

Upper bound on waiting for a busy model, in milliseconds.

public long? BusyTimeoutMs { get; set; }

Property Value

long?

Language

Language hint.

public string? Language { get; set; }

Property Value

string

Model

Configured model id. Required.

public string? Model { get; set; }

Property Value

string

Options

Model-family-specific options (JSON form only; the multipart routes do not read an options map for single transcriptions).

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

Property Value

Dictionary<string, string>

Methods

Validate()

Validates that exactly one audio form is set and a model id is present.

public void Validate()