GeneratedAudio
Namespace: Vercel.AI.Operations
public sealed class GeneratedAudioGenerated speech audio.
Inheritance: object
Constructors
Section titled “Constructors”GeneratedAudio(byte[], string)
Section titled “GeneratedAudio(byte[], string)”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/. |
Properties
Section titled “Properties”public byte[] Data { get; }Audio bytes.
Value: byte[]
Format
Section titled “Format”public string Format { get; }Format subtype. audio/mpeg stays mp3.
Value: string
MediaType
Section titled “MediaType”public string MediaType { get; }Media type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product