class

OpenAI::RealtimeServerEventInputAudioBufferSpeechStopped

Inherits JSON::Serializable < Reference < Object

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.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, audio_end_ms : Int64 = 0, item_id : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio_end_ms

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.

Source
audio_end_ms=(audio_end_ms : Int64)

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.

Source
event_id

The unique ID of the server event.

Source
event_id=(event_id : String)

The unique ID of the server event.

Source
item_id

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

Source
item_id=(item_id : String)

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

Source
type_value

The event type, must be input_audio_buffer.speech_stopped.

Source
type_value=(type_value : Hash(String, JSON::Any))

The event type, must be input_audio_buffer.speech_stopped.

Source