AudioInput
Namespace: Vercel.AI.Provider
public sealed class AudioInputAudio sent to a transcription or translation model.
Inheritance: object
Constructors
Section titled “Constructors”AudioInput(byte[], string, string?)
Section titled “AudioInput(byte[], string, string?)”public AudioInput(byte[] data, string mediaType, string? fileName)Creates audio input.
Parameters
| Name | Type | Description |
|---|---|---|
data |
byte[] | |
mediaType |
string | |
fileName |
string |
Properties
Section titled “Properties”public byte[] Data { get; }Audio bytes.
Value: byte[]
FileName
Section titled “FileName”public string? FileName { get; }File name sent in multipart bodies.
Value: string
MediaType
Section titled “MediaType”public string MediaType { get; }IANA media type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product