Class PartialTranscript
- java.lang.Object
-
- com.assemblyai.api.resources.realtime.types.PartialTranscript
-
- All Implemented Interfaces:
IRealtimeBaseTranscript
public final class PartialTranscript extends java.lang.Object implements IRealtimeBaseTranscript
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePartialTranscript._FinalStagestatic interfacePartialTranscript.AudioEndStagestatic interfacePartialTranscript.AudioStartStagestatic classPartialTranscript.Builderstatic interfacePartialTranscript.ConfidenceStagestatic interfacePartialTranscript.CreatedStagestatic interfacePartialTranscript.TextStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PartialTranscript.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()java.lang.StringgetText()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()
-
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 PartialTranscript.AudioStartStage builder()
-
-