class

OpenAI::RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment

Inherits JSON::Serializable < Reference < Object

Returned when an input audio transcription segment is identified for an item.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, item_id : String = "", content_index : Int64 = 0, text : String = "", id : String = "", speaker : String = "", start : Float32 = 0.0, end_value : Float32 = 0.0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content_index

The index of the input audio content part within the item.

Source
content_index=(content_index : Int64)

The index of the input audio content part within the item.

Source
end_value

End time of the segment in seconds.

Source
end_value=(end_value : Float32)

End time of the segment in seconds.

Source
event_id

The unique ID of the server event.

Source
event_id=(event_id : String)

The unique ID of the server event.

Source
id

The segment identifier.

Source
id=(id : String)

The segment identifier.

Source
item_id

The ID of the item containing the input audio content.

Source
item_id=(item_id : String)

The ID of the item containing the input audio content.

Source
speaker

The detected speaker label for this segment.

Source
speaker=(speaker : String)

The detected speaker label for this segment.

Source
start

Start time of the segment in seconds.

Source
start=(start : Float32)

Start time of the segment in seconds.

Source
text

The text for this segment.

Source
text=(text : String)

The text for this segment.

Source
type_value

The event type, must be conversation.item.input_audio_transcription.segment.

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

The event type, must be conversation.item.input_audio_transcription.segment.

Source