Freigeben über


TranscriptPhrase Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.TranscriptPhrase

Implements

public final class TranscriptPhrase
implements JsonSerializable<TranscriptPhrase>

Transcript phrase.

Method Summary

Modifier and Type Method and Description
static TranscriptPhrase fromJson(JsonReader jsonReader)

Reads an instance of TranscriptPhrase from the JsonReader.

Double getConfidence()

Get the confidence property: Confidence of predicting the phrase.

Duration getEndTime()

Gets the endTime as a Duration.

String getLocale()

Get the locale property: Detected locale of the phrase.

ContentSpan 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 startTime as a Duration.

String getText()

Get the text property: Transcript text.

List<TranscriptWord> getWords()

Get the words property: List of words in the phrase.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of TranscriptPhrase if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getConfidence

public Double getConfidence()

Get the confidence property: Confidence of predicting the phrase.

Returns:

the confidence value.

getEndTime

public Duration getEndTime()

Gets the endTime as a Duration.

Returns:

the duration.

getLocale

public String getLocale()

Get the locale property: Detected locale of the phrase. Ex. en-US.

Returns:

the locale value.

getSpan

public ContentSpan getSpan()

Get the span property: Span of the phrase in the markdown content.

Returns:

the span value.

getSpeaker

public String getSpeaker()

Get the speaker property: Speaker index or name.

Returns:

the speaker value.

getStartTime

public Duration getStartTime()

Gets the startTime as a Duration.

Returns:

the duration.

getText

public String getText()

Get the text property: Transcript text.

Returns:

the text value.

getWords

public List<TranscriptWord> getWords()

Get the words property: List of words in the phrase.

Returns:

the words value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to