Language

VoiceRecording Class

Definition

Metadata for the merged, whole-call stereo recording of a voice conversation (user audio on the left channel, agent audio on the right). Built once from the per-turn segments after the session ends and durably cached. The common metadata (format, sample rate, channels, channel layout, duration) is returned for both Foundry-managed and bring-your-own-storage (BYOS) recordings. For BYOS the response also includes blob_uri, the URI of the recording in the customer's own storage (no SAS token), which the customer downloads using their own storage credentials. For Foundry-managed storage blob_uri is absent and the bytes are streamed via the /audio/content route instead.

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

Properties

Name Description
BlobUri

For bring-your-own-storage (BYOS) recordings only: the URI of the recording 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 /audio/content route instead.

ChannelLayout

The role assigned to each stereo channel.

Channels

The number of audio channels. The merged recording is stereo (2).

ConversationId

The id of the conversation this recording belongs to.

DurationMs

The total duration of the recording.

Format

The container format of the recording.

SampleRate

The sample rate of the recording in Hz, e.g. 24000.

Methods

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

Operators

Name Description
Explicit(ClientResult to VoiceRecording)

Explicit Interface Implementations

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

Applies to