Class ResponseInputAudio
-
- All Implemented Interfaces:
public final class ResponseInputAudio
An audio input to the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputAudio.Builder
A builder for ResponseInputAudio.
public final class
ResponseInputAudio.Format
The format of the audio data. Currently supported formats are
mp3
andwav
.
-
Method Summary
Modifier and Type Method Description final String
data()
Base64-encoded audio data. final ResponseInputAudio.Format
format()
The format of the audio data. final JsonValue
_type()
The type of the input item. final JsonField<String>
_data()
Returns the raw JSON value of data. final JsonField<ResponseInputAudio.Format>
_format()
Returns the raw JSON value of format. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputAudio.Builder
toBuilder()
final ResponseInputAudio
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputAudio.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseInputAudio. -
-
Method Detail
-
format
final ResponseInputAudio.Format format()
The format of the audio data. Currently supported formats are
mp3
andwav
.
-
_type
final JsonValue _type()
The type of the input item. Always
input_audio
.Expected to always return the following:
JsonValue.from("input_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.
-
_format
final JsonField<ResponseInputAudio.Format> _format()
Returns the raw JSON value of format.
Unlike format, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputAudio.Builder toBuilder()
-
validate
final ResponseInputAudio validate()
-
builder
final static ResponseInputAudio.Builder builder()
Returns a mutable builder for constructing an instance of ResponseInputAudio.
The following fields are required:
.data() .format()
-
-
-
-