Class ChatCompletionAudio
-
- All Implemented Interfaces:
public final class ChatCompletionAudioIf the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionAudio.BuilderA builder for ChatCompletionAudio.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this audio response. final Stringdata()Base64 encoded audio bytes generated by the model, in the format specified in the request. final LongexpiresAt()The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations. final Stringtranscript()Transcript of the audio generated by the model. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_data()Returns the raw JSON value of data. final JsonField<Long>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<String>_transcript()Returns the raw JSON value of transcript. final Map<String, JsonValue>_additionalProperties()final ChatCompletionAudio.BuildertoBuilder()final ChatCompletionAudiovalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionAudio.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionAudio. -
-
Method Detail
-
data
final String data()
Base64 encoded audio bytes generated by the model, in the format specified in the request.
-
expiresAt
final Long expiresAt()
The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.
-
transcript
final String transcript()
Transcript of the audio generated by the model.
-
_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.
-
_data
final JsonField<String> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<Long> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_transcript
final JsonField<String> _transcript()
Returns the raw JSON value of transcript.
Unlike transcript, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionAudio.Builder toBuilder()
-
validate
final ChatCompletionAudio validate()
-
builder
final static ChatCompletionAudio.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionAudio.
The following fields are required:
.id() .data() .expiresAt() .transcript()
-
-
-
-