Skip to content

AudioInput

Namespace: Vercel.AI.Provider

public sealed class AudioInput

Audio sent to a transcription or translation model.

Inheritance: object

View source

public AudioInput(byte[] data, string mediaType, string? fileName)

Creates audio input.

Parameters

Name Type Description
data byte[]
mediaType string
fileName string

View source

public byte[] Data { get; }

Audio bytes.

Value: byte[]

View source

public string? FileName { get; }

File name sent in multipart bodies.

Value: string

View source

public string MediaType { get; }

IANA media type.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product