Class: OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionSegment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionSegment
- Defined in:
- lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb
Instance Attribute Summary collapse
-
#content_index ⇒ Integer
The index of the input audio content part within the item.
-
#end_ ⇒ Float
End time of the segment in seconds.
-
#event_id ⇒ String
The unique ID of the server event.
-
#id ⇒ String
The segment identifier.
-
#item_id ⇒ String
The ID of the item containing the input audio content.
-
#speaker ⇒ String
The detected speaker label for this segment.
-
#start ⇒ Float
Start time of the segment in seconds.
-
#text ⇒ String
The text for this segment.
-
#type ⇒ Symbol, :"conversation.item.input_audio_transcription.segment"
The event type, must be ‘conversation.item.input_audio_transcription.segment`.
Instance Method Summary collapse
-
#initialize(id:, content_index:, end_:, event_id:, item_id:, speaker:, start:, text:, type: :"conversation.item.input_audio_transcription.segment") ⇒ Object
constructor
Returned when an input audio transcription segment is identified for an item.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, content_index:, end_:, event_id:, item_id:, speaker:, start:, text:, type: :"conversation.item.input_audio_transcription.segment") ⇒ Object
Returned when an input audio transcription segment is identified for an item.
|
|
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 61
|
Instance Attribute Details
#content_index ⇒ Integer
The index of the input audio content part within the item.
17 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 17 required :content_index, Integer |
#end_ ⇒ Float
End time of the segment in seconds.
23 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 23 required :end_, Float, api_name: :end |
#event_id ⇒ String
The unique ID of the server event.
29 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 29 required :event_id, String |
#id ⇒ String
The segment identifier.
11 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 11 required :id, String |
#item_id ⇒ String
The ID of the item containing the input audio content.
35 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 35 required :item_id, String |
#speaker ⇒ String
The detected speaker label for this segment.
41 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 41 required :speaker, String |
#start ⇒ Float
Start time of the segment in seconds.
47 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 47 required :start, Float |
#text ⇒ String
The text for this segment.
53 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 53 required :text, String |
#type ⇒ Symbol, :"conversation.item.input_audio_transcription.segment"
The event type, must be ‘conversation.item.input_audio_transcription.segment`.
59 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb', line 59 required :type, const: :"conversation.item.input_audio_transcription.segment" |