Class FinalTranscript
- java.lang.Object
-
- com.assemblyai.api.resources.realtime.types.FinalTranscript
-
- All Implemented Interfaces:
IRealtimeBaseTranscript
public final class FinalTranscript extends java.lang.Object implements IRealtimeBaseTranscript
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFinalTranscript._FinalStagestatic interfaceFinalTranscript.AudioEndStagestatic interfaceFinalTranscript.AudioStartStagestatic classFinalTranscript.Builderstatic interfaceFinalTranscript.ConfidenceStagestatic interfaceFinalTranscript.CreatedStagestatic interfaceFinalTranscript.PunctuatedStagestatic interfaceFinalTranscript.TextFormattedStagestatic interfaceFinalTranscript.TextStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FinalTranscript.AudioStartStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()intgetAudioEnd()intgetAudioStart()doublegetConfidence()java.time.OffsetDateTimegetCreated()java.lang.StringgetMessageType()booleangetPunctuated()java.lang.StringgetText()booleangetTextFormatted()java.util.List<Word>getWords()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getAudioStart
public int getAudioStart()
- Specified by:
getAudioStartin interfaceIRealtimeBaseTranscript- Returns:
- Start time of audio sample relative to session start, in milliseconds
-
getAudioEnd
public int getAudioEnd()
- Specified by:
getAudioEndin interfaceIRealtimeBaseTranscript- Returns:
- End time of audio sample relative to session start, in milliseconds
-
getConfidence
public double getConfidence()
- Specified by:
getConfidencein interfaceIRealtimeBaseTranscript- Returns:
- The confidence score of the entire transcription, between 0 and 1
-
getText
public java.lang.String getText()
- Specified by:
getTextin interfaceIRealtimeBaseTranscript- Returns:
- The partial transcript for your audio
-
getWords
public java.util.List<Word> getWords()
- Specified by:
getWordsin interfaceIRealtimeBaseTranscript- Returns:
- An array of objects, with the information for each word in the transcription text. Includes the start and end time of the word in milliseconds, the confidence score of the word, and the text, which is the word itself.
-
getCreated
public java.time.OffsetDateTime getCreated()
- Specified by:
getCreatedin interfaceIRealtimeBaseTranscript- Returns:
- The timestamp for the partial transcript
-
getMessageType
public java.lang.String getMessageType()
-
getPunctuated
public boolean getPunctuated()
- Returns:
- Whether the text is punctuated and cased
-
getTextFormatted
public boolean getTextFormatted()
- Returns:
- Whether the text is formatted, for example Dollar -> $
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static FinalTranscript.AudioStartStage builder()
-
-