Package com.openai.models.responses
Class ResponseOutputAudio
-
- All Implemented Interfaces:
public final class ResponseOutputAudioAn audio output from the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseOutputAudio.BuilderA builder for ResponseOutputAudio.
-
Method Summary
Modifier and Type Method Description final Stringdata()Base64-encoded audio data from the model. final Stringtranscript()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.BuildertoBuilder()final ResponseOutputAudiovalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseOutputAudio.Builderbuilder()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()
-
-
-
-