Package com.google.genai.types
Class WordInfo
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.WordInfo
Information about a single recognized word.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WordInfo.Builderbuilder()Instantiates a builder for WordInfo.End offset in time of the word relative to the start of the audio.static WordInfoDeserializes a JSON string to a WordInfo object.Start offset in time of the word relative to the start of the audio.abstract WordInfo.BuilderCreates a builder with the same values as this instance.word()Transcript of the word.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
WordInfo
public WordInfo()
-
-
Method Details
-
word
Transcript of the word. -
startOffset
Start offset in time of the word relative to the start of the audio. -
endOffset
End offset in time of the word relative to the start of the audio. -
builder
Instantiates a builder for WordInfo. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a WordInfo object.
-