WordData Class
- java.
lang. Object - com.
azure. communication. callautomation. models. WordData
- com.
Implements
public class WordData
implements JsonSerializable<WordData>
The result for each word of the phrase
Constructor Summary
| Constructor | Description |
|---|---|
| WordData() |
Creates a new instance of WordData. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Word |
fromJson(JsonReader jsonReader)
Reads an instance of Word from the Json |
| Duration |
getDuration()
Get the duration property. |
| long |
getOffset()
Get the offset property. |
| String |
getText()
Get the text property. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
WordData
public WordData()
Creates a new instance of WordData.
Method Details
fromJson
public static WordData fromJson(JsonReader jsonReader)
Reads an instance of Word from the JsonReader.
Parameters:
Returns:
Throws:
getDuration
public Duration getDuration()
Get the duration property.
Returns:
getOffset
public long getOffset()
Get the offset property.
Returns:
getText
public String getText()
Get the text property.
Returns: