Package com.openai.models.responses
Class ResponseOutputAudio
-
- All Implemented Interfaces:
public final class ResponseOutputAudio
An audio output from the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseOutputAudio.Builder
A builder for ResponseOutputAudio.
-
Method Summary
Modifier and Type Method Description final String
data()
Base64-encoded audio data from the model. final String
transcript()
The transcript of the audio data from the model. final JsonValue
_type()
The type of the output audio. final JsonField<String>
_data()
Returns the raw JSON value of data. final JsonField<String>
_transcript()
Returns the raw JSON value of transcript. final Map<String, JsonValue>
_additionalProperties()
final ResponseOutputAudio.Builder
toBuilder()
final ResponseOutputAudio
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseOutputAudio.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseOutputAudio. -
-
Method Detail
-
transcript
final String transcript()
The transcript of the audio data from the model.
-
_type
final JsonValue _type()
The type of the output audio. Always
output_audio
.Expected to always return the following:
JsonValue.from("output_audio")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_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 ResponseOutputAudio.Builder toBuilder()
-
validate
final ResponseOutputAudio validate()
-
builder
final static ResponseOutputAudio.Builder builder()
Returns a mutable builder for constructing an instance of ResponseOutputAudio.
The following fields are required:
.data() .transcript()
-
-
-
-