Language

VoiceGeneratedAudioItem Class

Definition

Metadata for a conversation item's generated audio. For bring-your-own-storage (BYOS), the response includes blob_uri, a direct customer-storage URI without a SAS token, that the customer accesses with their own credentials. For Foundry-managed storage, blob_uri is absent and the bytes are streamed through the item's /audio/generated/content route.

public class VoiceGeneratedAudioItem : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.VoiceGeneratedAudioItem>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.VoiceGeneratedAudioItem>
type VoiceGeneratedAudioItem = class
    interface IJsonModel<VoiceGeneratedAudioItem>
    interface IPersistableModel<VoiceGeneratedAudioItem>
Public Class VoiceGeneratedAudioItem
Implements IJsonModel(Of VoiceGeneratedAudioItem), IPersistableModel(Of VoiceGeneratedAudioItem)
Inheritance
VoiceGeneratedAudioItem
Implements

Properties

Name Description
BlobUri

For bring-your-own-storage (BYOS) recordings only: the URI of the generated audio in the customer's own storage, without a SAS token. The customer downloads it using their own storage credentials. Absent for Foundry-managed storage, where the bytes are streamed via the item's /audio/generated/content route instead.

Channels

The number of audio channels.

Codec

The audio codec.

ConversationId

The id of the conversation the item belongs to.

DurationMs

The duration of the audio segment.

Format

The container format of the audio.

ItemId

The id of the item this audio belongs to.

Role

The role the audio belongs to.

SampleRate

The sample rate in Hz.

StartOffsetMs

The offset from the session start at which this segment begins.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Name Description
Explicit(ClientResult to VoiceGeneratedAudioItem)

Explicit Interface Implementations

Name Description
IJsonModel<VoiceGeneratedAudioItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<VoiceGeneratedAudioItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<VoiceGeneratedAudioItem>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<VoiceGeneratedAudioItem>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<VoiceGeneratedAudioItem>.Write(ModelReaderWriterOptions)

Applies to