VoiceLiveModelFactory.SessionUpdateInputAudioBufferSpeechStarted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sent by the server when in server_vad mode to indicate that speech has been
detected in the audio buffer. This can happen any time audio is added to the
buffer (unless speech is already detected). The client may want to use this
event to interrupt audio playback or provide visual feedback to the user.
The client should expect to receive a input_audio_buffer.speech_stopped event
when speech stops. The item_id property is the ID of the user message item
that will be created when speech stops and will also be included in the
input_audio_buffer.speech_stopped event (unless the client manually commits
the audio buffer during VAD activation).
public static Azure.AI.VoiceLive.SessionUpdateInputAudioBufferSpeechStarted SessionUpdateInputAudioBufferSpeechStarted(string eventId = default, int audioStartMs = 0, string itemId = default);
static member SessionUpdateInputAudioBufferSpeechStarted : string * int * string -> Azure.AI.VoiceLive.SessionUpdateInputAudioBufferSpeechStarted
Public Shared Function SessionUpdateInputAudioBufferSpeechStarted (Optional eventId As String = Nothing, Optional audioStartMs As Integer = 0, Optional itemId As String = Nothing) As SessionUpdateInputAudioBufferSpeechStarted
Parameters
- eventId
- String
- audioStartMs
- Int32
Milliseconds from the start of all audio written to the buffer during the
session when speech was first detected. This will correspond to the
beginning of audio sent to the model, and thus includes the
prefix_padding_ms configured in the Session.
- itemId
- String
The ID of the user message item that will be created when speech stops.
Returns
A new SessionUpdateInputAudioBufferSpeechStarted instance for mocking.