Class ChatCompletionAudio
-
- All Implemented Interfaces:
public final class ChatCompletionAudio
If 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 class
ChatCompletionAudio.Builder
A builder for ChatCompletionAudio.
-
Method Summary
Modifier and Type Method Description final String
id()
Unique identifier for this audio response. final String
data()
Base64 encoded audio bytes generated by the model, in the format specified in the request. 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. final String
transcript()
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.Builder
toBuilder()
final ChatCompletionAudio
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionAudio.Builder
builder()
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()
-
-
-
-