SpeechAudioFormat
Namespace: Vercel.AI.Operations
public sealed class SpeechAudioFormatAudio format of a speech stream, such as audio/pcm at 24000 Hz or audio/mpeg.
Inheritance: object
Constructors
Section titled “Constructors”SpeechAudioFormat(string, int?)
Section titled “SpeechAudioFormat(string, int?)”public SpeechAudioFormat(string type, int? rate = null)Creates a format.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
rate |
int? |
Properties
Section titled “Properties”public int? Rate { get; }Sample rate in Hz. Only applicable for formats that require a rate.
Value: int?
public string Type { get; }Audio format type, such as audio/pcm, audio/pcmu, or audio/pcma.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product