Share via


VoiceLiveModelFactory.SessionUpdateConversationItemTruncated Method

Definition

Returned when an earlier assistant audio message item is truncated by the client with a conversation.item.truncate event. This event is used to synchronize the server's understanding of the audio with the client's playback. This action will truncate the audio and remove the server-side text transcript to ensure there is no text in the context that hasn't been heard by the user.

public static Azure.AI.VoiceLive.SessionUpdateConversationItemTruncated SessionUpdateConversationItemTruncated(string itemId = default, int contentIndex = 0, int audioEndMs = 0, string eventId = default);
static member SessionUpdateConversationItemTruncated : string * int * int * string -> Azure.AI.VoiceLive.SessionUpdateConversationItemTruncated
Public Shared Function SessionUpdateConversationItemTruncated (Optional itemId As String = Nothing, Optional contentIndex As Integer = 0, Optional audioEndMs As Integer = 0, Optional eventId As String = Nothing) As SessionUpdateConversationItemTruncated

Parameters

itemId
String

The ID of the assistant message item that was truncated.

contentIndex
Int32

The index of the content part that was truncated.

audioEndMs
Int32

The duration up to which the audio was truncated, in milliseconds.

eventId
String

Returns

A new SessionUpdateConversationItemTruncated instance for mocking.

Applies to