Class BetaResponseOutputAudio
-
- All Implemented Interfaces:
public final class BetaResponseOutputAudioAn audio output from the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseOutputAudio.BuilderA builder for BetaResponseOutputAudio.
-
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 BetaResponseOutputAudio.BuildertoBuilder()final BetaResponseOutputAudiovalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseOutputAudio.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseOutputAudio. -
-
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 BetaResponseOutputAudio.Builder toBuilder()
-
validate
final BetaResponseOutputAudio validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseOutputAudio.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseOutputAudio.
The following fields are required:
.data() .transcript()
-
-
-
-