Share via


VoiceLiveModelFactory.SessionUpdateInputAudioBufferSpeechStopped Method

Definition

Returned in server_vad mode when the server detects the end of speech in the audio buffer. The server will also send an conversation.item.created event with the user message item that is created from the audio buffer.

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

Parameters

eventId
String
audioEndMs
Int32

Milliseconds since the session started when speech stopped. This will correspond to the end of audio sent to the model, and thus includes the min_silence_duration_ms configured in the Session.

itemId
String

The ID of the user message item that will be created.

Returns

A new SessionUpdateInputAudioBufferSpeechStopped instance for mocking.

Applies to