TranscribedWord Class
- java.
lang. Object - com.
azure. ai. speech. transcription. models. TranscribedWord
- com.
Implements
public final class TranscribedWord
implements JsonSerializable<TranscribedWord>
Time-stamped word in the display form.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Transcribed |
fromJson(JsonReader jsonReader)
Reads an instance of Transcribed |
| Duration |
getDuration()
Get the duration property: The duration in milliseconds. |
| int |
getOffset()
Get the offset property: The start offset of the word in milliseconds. |
| String |
getText()
Get the text property: The recognized word, including punctuation. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static TranscribedWord fromJson(JsonReader jsonReader)
Reads an instance of TranscribedWord from the JsonReader.
Parameters:
Returns:
Throws:
getDuration
public Duration getDuration()
Get the duration property: The duration in milliseconds.
Returns:
getOffset
public int getOffset()
Get the offset property: The start offset of the word in milliseconds.
Returns:
getText
public String getText()
Get the text property: The recognized word, including punctuation.
Returns: