Class TranscriptionVerbose.Builder
-
- All Implemented Interfaces:
public final class TranscriptionVerbose.Builder
A builder for TranscriptionVerbose.
-
-
Method Summary
-
-
Method Detail
-
duration
final TranscriptionVerbose.Builder duration(Double duration)
The duration of the input audio.
-
duration
final TranscriptionVerbose.Builder duration(JsonField<Double> duration)
Sets Builder.duration to an arbitrary JSON value.
You should usually call Builder.duration with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
language
final TranscriptionVerbose.Builder language(String language)
The language of the input audio.
-
language
final TranscriptionVerbose.Builder language(JsonField<String> language)
Sets Builder.language to an arbitrary JSON value.
You should usually call Builder.language with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final TranscriptionVerbose.Builder text(String text)
The transcribed text.
-
text
final TranscriptionVerbose.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
segments
final TranscriptionVerbose.Builder segments(List<TranscriptionSegment> segments)
Segments of the transcribed text and their corresponding details.
-
segments
final TranscriptionVerbose.Builder segments(JsonField<List<TranscriptionSegment>> segments)
Sets Builder.segments to an arbitrary JSON value.
You should usually call Builder.segments with a well-typed
List<TranscriptionSegment>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addSegment
final TranscriptionVerbose.Builder addSegment(TranscriptionSegment segment)
Adds a single TranscriptionSegment to segments.
-
words
final TranscriptionVerbose.Builder words(List<TranscriptionWord> words)
Extracted words and their corresponding timestamps.
-
words
final TranscriptionVerbose.Builder words(JsonField<List<TranscriptionWord>> words)
Sets Builder.words to an arbitrary JSON value.
You should usually call Builder.words with a well-typed
List<TranscriptionWord>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addWord
final TranscriptionVerbose.Builder addWord(TranscriptionWord word)
Adds a single TranscriptionWord to words.
-
additionalProperties
final TranscriptionVerbose.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionVerbose.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionVerbose.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionVerbose.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionVerbose.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionVerbose build()
Returns an immutable instance of TranscriptionVerbose.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.duration() .language() .text()
-
-
-
-