Skip to content

GeneratedAudio

Namespace: Vercel.AI.Operations

public sealed class GeneratedAudio

Generated speech audio.

Inheritance: object

View source

public GeneratedAudio(byte[] data, string mediaType)

Creates generated audio.

Parameters

Name Type Description
data byte[]
mediaType string

Exceptions

Type Condition
InvalidResponseDataException The media type has an empty subtype, such as audio/.

View source

public byte[] Data { get; }

Audio bytes.

Value: byte[]

View source

public string Format { get; }

Format subtype. audio/mpeg stays mp3.

Value: string

View source

public string MediaType { get; }

Media type.

Value: string

View source

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