Class TranscriptionVerbose
-
- All Implemented Interfaces:
public final class TranscriptionVerboseRepresents a verbose json transcription response returned by model, based on the provided input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionVerbose.BuilderA builder for TranscriptionVerbose.
public final classTranscriptionVerbose.UsageUsage statistics for models billed by audio input duration.
-
Method Summary
Modifier and Type Method Description final Doubleduration()The duration of the input audio. final Stringlanguage()The language of the input audio. final Stringtext()The transcribed text. final Optional<List<TranscriptionSegment>>segments()Segments of the transcribed text and their corresponding details. final Optional<TranscriptionVerbose.Usage>usage()Usage statistics for models billed by audio input duration. final Optional<List<TranscriptionWord>>words()Extracted words and their corresponding timestamps. final JsonField<Double>_duration()Returns the raw JSON value of duration. final JsonField<String>_language()Returns the raw JSON value of language. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<List<TranscriptionSegment>>_segments()Returns the raw JSON value of segments. final JsonField<TranscriptionVerbose.Usage>_usage()Returns the raw JSON value of usage. final JsonField<List<TranscriptionWord>>_words()Returns the raw JSON value of words. final Map<String, JsonValue>_additionalProperties()final TranscriptionVerbose.BuildertoBuilder()final TranscriptionVerbosevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionVerbose.Builderbuilder()Returns a mutable builder for constructing an instance of TranscriptionVerbose. -
-
Method Detail
-
segments
final Optional<List<TranscriptionSegment>> segments()
Segments of the transcribed text and their corresponding details.
-
usage
final Optional<TranscriptionVerbose.Usage> usage()
Usage statistics for models billed by audio input duration.
-
words
final Optional<List<TranscriptionWord>> words()
Extracted words and their corresponding timestamps.
-
_duration
final JsonField<Double> _duration()
Returns the raw JSON value of duration.
Unlike duration, this method doesn't throw if the JSON field has an unexpected type.
-
_language
final JsonField<String> _language()
Returns the raw JSON value of language.
Unlike language, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_segments
final JsonField<List<TranscriptionSegment>> _segments()
Returns the raw JSON value of segments.
Unlike segments, this method doesn't throw if the JSON field has an unexpected type.
-
_usage
final JsonField<TranscriptionVerbose.Usage> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_words
final JsonField<List<TranscriptionWord>> _words()
Returns the raw JSON value of words.
Unlike words, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TranscriptionVerbose.Builder toBuilder()
-
validate
final TranscriptionVerbose 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 TranscriptionVerbose.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptionVerbose.
The following fields are required:
.duration() .language() .text()
-
-
-
-