Skip to content

SpeechAudioFormat

Namespace: Vercel.AI.Operations

public sealed class SpeechAudioFormat

Audio format of a speech stream, such as audio/pcm at 24000 Hz or audio/mpeg.

Inheritance: object

View source

public SpeechAudioFormat(string type, int? rate = null)

Creates a format.

Parameters

Name Type Description
type string
rate int?

View source

public int? Rate { get; }

Sample rate in Hz. Only applicable for formats that require a rate.

Value: int?

View source

public string Type { get; }

Audio format type, such as audio/pcm, audio/pcmu, or audio/pcma.

Value: string

View source

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