TranscriptPhrase Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. TranscriptPhrase
- com.
Implements
public final class TranscriptPhrase
implements JsonSerializable<TranscriptPhrase>
Transcript phrase.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Transcript |
fromJson(JsonReader jsonReader)
Reads an instance of Transcript |
| Double |
getConfidence()
Get the confidence property: Confidence of predicting the phrase. |
| Duration |
getEndTime()
Gets the end |
| String |
getLocale()
Get the locale property: Detected locale of the phrase. |
|
Content |
getSpan()
Get the span property: Span of the phrase in the markdown content. |
| String |
getSpeaker()
Get the speaker property: Speaker index or name. |
| Duration |
getStartTime()
Gets the start |
| String |
getText()
Get the text property: Transcript text. |
|
List<Transcript |
getWords()
Get the words property: List of words in the phrase. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static TranscriptPhrase fromJson(JsonReader jsonReader)
Reads an instance of TranscriptPhrase from the JsonReader.
Parameters:
Returns:
Throws:
getConfidence
public Double getConfidence()
Get the confidence property: Confidence of predicting the phrase.
Returns:
getEndTime
public Duration getEndTime()
Gets the endTime as a Duration.
Returns:
getLocale
public String getLocale()
Get the locale property: Detected locale of the phrase. Ex. en-US.
Returns:
getSpan
public ContentSpan getSpan()
Get the span property: Span of the phrase in the markdown content.
Returns:
getSpeaker
public String getSpeaker()
Get the speaker property: Speaker index or name.
Returns:
getStartTime
public Duration getStartTime()
Gets the startTime as a Duration.
Returns:
getText
public String getText()
Get the text property: Transcript text.
Returns:
getWords
public List<TranscriptWord> getWords()
Get the words property: List of words in the phrase.
Returns: