Class ConversationItemInputAudioTranscriptionSegment
-
- All Implemented Interfaces:
public final class ConversationItemInputAudioTranscriptionSegment
Returned when an input audio transcription segment is identified for an item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ConversationItemInputAudioTranscriptionSegment.Builder
A builder for ConversationItemInputAudioTranscriptionSegment.
-
Method Summary
Modifier and Type Method Description final String
id()
The segment identifier. final Long
contentIndex()
The index of the input audio content part within the item. final Float
end()
End time of the segment in seconds. final String
eventId()
The unique ID of the server event. final String
itemId()
The ID of the item containing the input audio content. final String
speaker()
The detected speaker label for this segment. final Float
start()
Start time of the segment in seconds. final String
text()
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.Builder
toBuilder()
final ConversationItemInputAudioTranscriptionSegment
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ConversationItemInputAudioTranscriptionSegment.Builder
builder()
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()
-
-
-
-