Class ConversationItemInputAudioTranscriptionSegment
-
- All Implemented Interfaces:
public final class ConversationItemInputAudioTranscriptionSegmentReturned when an input audio transcription segment is identified for an item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationItemInputAudioTranscriptionSegment.BuilderA builder for ConversationItemInputAudioTranscriptionSegment.
-
Method Summary
Modifier and Type Method Description final Stringid()The segment identifier. final LongcontentIndex()The index of the input audio content part within the item. final Floatend()End time of the segment in seconds. final StringeventId()The unique ID of the server event. final StringitemId()The ID of the item containing the input audio content. final Stringspeaker()The detected speaker label for this segment. final Floatstart()Start time of the segment in seconds. final Stringtext()The text for this segment. final JsonValue_type()The event type, must be conversation.item.input_audio_transcription.segment.final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_contentIndex()Returns the raw JSON value of contentIndex. final JsonField<Float>_end()Returns the raw JSON value of end. final JsonField<String>_eventId()Returns the raw JSON value of eventId. final JsonField<String>_itemId()Returns the raw JSON value of itemId. final JsonField<String>_speaker()Returns the raw JSON value of speaker. final JsonField<Float>_start()Returns the raw JSON value of start. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final ConversationItemInputAudioTranscriptionSegment.BuildertoBuilder()final ConversationItemInputAudioTranscriptionSegmentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ConversationItemInputAudioTranscriptionSegment.Builderbuilder()Returns a mutable builder for constructing an instance of ConversationItemInputAudioTranscriptionSegment. -
-
Method Detail
-
contentIndex
final Long contentIndex()
The index of the input audio content part within the item.
-
_type
final JsonValue _type()
The event type, must be
conversation.item.input_audio_transcription.segment.Expected to always return the following:
JsonValue.from("conversation.item.input_audio_transcription.segment")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_contentIndex
final JsonField<Long> _contentIndex()
Returns the raw JSON value of contentIndex.
Unlike contentIndex, this method doesn't throw if the JSON field has an unexpected type.
-
_end
final JsonField<Float> _end()
Returns the raw JSON value of end.
Unlike end, this method doesn't throw if the JSON field has an unexpected type.
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_itemId
final JsonField<String> _itemId()
Returns the raw JSON value of itemId.
Unlike itemId, this method doesn't throw if the JSON field has an unexpected type.
-
_speaker
final JsonField<String> _speaker()
Returns the raw JSON value of speaker.
Unlike speaker, this method doesn't throw if the JSON field has an unexpected type.
-
_start
final JsonField<Float> _start()
Returns the raw JSON value of start.
Unlike start, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ConversationItemInputAudioTranscriptionSegment.Builder toBuilder()
-
validate
final ConversationItemInputAudioTranscriptionSegment validate()
-
builder
final static ConversationItemInputAudioTranscriptionSegment.Builder builder()
Returns a mutable builder for constructing an instance of ConversationItemInputAudioTranscriptionSegment.
The following fields are required:
.id() .contentIndex() .end() .eventId() .itemId() .speaker() .start() .text()
-
-
-
-