AudioFormat
Namespace: Vercel.AI.Operations
public sealed class AudioFormatThe format of raw input audio. Maps to SharedV4AudioFormat.
Inheritance: object
Constructors
Section titled “Constructors”AudioFormat(string, double?)
Section titled “AudioFormat(string, double?)”public AudioFormat(string type, double? rate = null)Creates an audio format.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
rate |
double? |
Properties
Section titled “Properties”public double? Rate { get; }Sample rate in Hz, when the format needs one.
Value: double?
public string Type { get; }Media type of the audio, such as audio/pcm.
Value: string
Operators
Section titled “Operators”implicit operator AudioFormat(string)
Section titled “implicit operator AudioFormat(string)”public static implicit operator AudioFormat(string type)Creates a format with no sample rate.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string |
Returns: AudioFormat
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product