class

OpenAI::RealtimeServerEventInputAudioBufferDtmfEventReceived

Inherits JSON::Serializable < Reference < Object

SIP Only: Returned when an DTMF event is received. A DTMF event is a message that represents a telephone keypad press (0–9, *, #, A–D). The event property is the keypad that the user press. The received_at is the UTC Unix Timestamp that the server received the event.

Constructors

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

Instance methods

event

The telephone keypad that was pressed by the user.

Source
event=(event : String)

The telephone keypad that was pressed by the user.

Source
received_at

UTC Unix Timestamp when DTMF Event was received by server.

Source
received_at=(received_at : Int64)

UTC Unix Timestamp when DTMF Event was received by server.

Source
type_value

The event type, must be input_audio_buffer.dtmf_event_received.

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

The event type, must be input_audio_buffer.dtmf_event_received.

Source