Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
TranscribedPhrase Class
- Package:
- com.azure.ai.speech.transcription.models
- Maven Artifact:
- com.azure:azure-ai-speech-transcription:1.0.0
- java.lang.Object
- com.azure.ai.speech.transcription.models.TranscribedPhrase
Implements
public final class TranscribedPhrase
implements JsonSerializable<TranscribedPhrase>
A transcribed phrase.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static TranscribedPhrase |
fromJson(JsonReader jsonReader)
Reads an instance of TranscribedPhrase from the JsonReader. |
| Integer |
getChannel()
Get the channel property: The 0-based channel index. |
| double |
getConfidence()
Get the confidence property: The confidence value for the phrase. |
| Duration |
getDuration()
Get the duration property: The duration in milliseconds. |
| String |
getLocale()
Get the locale property: The locale of the phrase. |
| Duration |
getOffset()
Get the offset property: The start offset of the phrase. |
| Integer |
getSpeaker()
Get the speaker property: A unique integer number that is assigned to each speaker detected in the audio without particular order. |
| String |
getText()
Get the text property: The transcribed text of the phrase. |
| List<TranscribedWord> |
getWords()
Get the words property: The words that make up the phrase. |
| JsonWriter | toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static TranscribedPhrase fromJson(JsonReader jsonReader)
Reads an instance of TranscribedPhrase from the JsonReader.
Parameters:
Returns:
Throws:
getChannel
public Integer getChannel()
Get the channel property: The 0-based channel index. Only present if channel separation is enabled.
Returns:
getConfidence
public double getConfidence()
Get the confidence property: The confidence value for the phrase.
Returns:
getDuration
public Duration getDuration()
Get the duration property: The duration in milliseconds.
Returns:
getLocale
public String getLocale()
Get the locale property: The locale of the phrase.
Returns:
getOffset
public Duration getOffset()
Get the offset property: The start offset of the phrase.
Returns:
getSpeaker
public Integer getSpeaker()
Get the speaker property: A unique integer number that is assigned to each speaker detected in the audio without particular order. Only present if speaker diarization is enabled.
Returns:
getText
public String getText()
Get the text property: The transcribed text of the phrase.
Returns:
getWords
public List<TranscribedWord> getWords()
Get the words property: The words that make up the phrase. Only present if word-level timestamps are enabled.
Returns:
toJson
Applies to
Azure SDK for Java
Feedback
Was this page helpful?
