MediaPipeTasksAudio Framework Reference

TranscriptionSegment

class TranscriptionSegment : NSObject

A single transcribed segment emitted by AudioTranscriber.

  • The transcribed text for this segment.

    Declaration

    Swift

    var transcript: String { get }
  • Whether this segment is final or an interim hypothesis.

    Declaration

    Swift

    var isFinal: Bool { get }
  • Start timestamp of this segment in milliseconds.

    Declaration

    Swift

    var fromTimestampInMilliseconds: Int64 { get }
  • End timestamp of this segment in milliseconds.

    Declaration

    Swift

    var toTimestampInMilliseconds: Int64 { get }