Class FinalTranscript

    • Method Detail

      • getAudioStart

        public int getAudioStart()
        Specified by:
        getAudioStart in interface IRealtimeBaseTranscript
        Returns:
        Start time of audio sample relative to session start, in milliseconds
      • getAudioEnd

        public int getAudioEnd()
        Specified by:
        getAudioEnd in interface IRealtimeBaseTranscript
        Returns:
        End time of audio sample relative to session start, in milliseconds
      • getConfidence

        public double getConfidence()
        Specified by:
        getConfidence in interface IRealtimeBaseTranscript
        Returns:
        The confidence score of the entire transcription, between 0 and 1
      • getText

        public java.lang.String getText()
        Specified by:
        getText in interface IRealtimeBaseTranscript
        Returns:
        The partial transcript for your audio
      • getWords

        public java.util.List<Word> getWords()
        Specified by:
        getWords in interface IRealtimeBaseTranscript
        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:
        getCreated in interface IRealtimeBaseTranscript
        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:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object