Class TranscriptionDiarized
-
- All Implemented Interfaces:
public final class TranscriptionDiarizedRepresents a diarized transcription response returned by the model, including the combined transcript and speaker-segment annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionDiarized.BuilderA builder for TranscriptionDiarized.
public final classTranscriptionDiarized.UsageToken or duration usage statistics for the request.
-
Method Summary
Modifier and Type Method Description final Doubleduration()Duration of the input audio in seconds. final List<TranscriptionDiarizedSegment>segments()Segments of the transcript annotated with timestamps and speaker labels. final JsonValue_task()The type of task that was run. final Stringtext()The concatenated transcript text for the entire audio input. final Optional<TranscriptionDiarized.Usage>usage()Token or duration usage statistics for the request. final JsonField<Double>_duration()Returns the raw JSON value of duration. final JsonField<List<TranscriptionDiarizedSegment>>_segments()Returns the raw JSON value of segments. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<TranscriptionDiarized.Usage>_usage()Returns the raw JSON value of usage. final Map<String, JsonValue>_additionalProperties()final TranscriptionDiarized.BuildertoBuilder()final TranscriptionDiarizedvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionDiarized.Builderbuilder()Returns a mutable builder for constructing an instance of TranscriptionDiarized. -
-
Method Detail
-
segments
final List<TranscriptionDiarizedSegment> segments()
Segments of the transcript annotated with timestamps and speaker labels.
-
_task
final JsonValue _task()
The type of task that was run. Always
transcribe.Expected to always return the following:
JsonValue.from("transcribe")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
usage
final Optional<TranscriptionDiarized.Usage> usage()
Token or duration usage statistics for the request.
-
_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.
-
_segments
final JsonField<List<TranscriptionDiarizedSegment>> _segments()
Returns the raw JSON value of segments.
Unlike segments, 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.
-
_usage
final JsonField<TranscriptionDiarized.Usage> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TranscriptionDiarized.Builder toBuilder()
-
validate
final TranscriptionDiarized validate()
-
builder
final static TranscriptionDiarized.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptionDiarized.
The following fields are required:
.duration() .segments() .text()
-
-
-
-