MediaPipeTasksAudio Framework Reference

AudioTranscriberResult

class AudioTranscriberResult: TaskResult, NSCopying

Represents the transcription results generated by MPPAudioTranscriber.

  • Initializes a new MPPAudioTranscriberResult with the given segments and timestamp.

    Declaration

    Swift

    init(segments: [AudioTranscriberSegment], timestampInMilliseconds: Int)

    Parameters

    segments

    The transcribed segments emitted by this invocation.

    timestampInMilliseconds

    The timestamp (in milliseconds) for this result.

    Return Value

    An initialized MPPAudioTranscriberResult.

  • The transcribed segments emitted by this invocation.

    Declaration

    Swift

    var segments: [AudioTranscriberSegment] { get }
  • Convenience property returning the concatenated transcript of all segments.

    Declaration

    Swift

    var text: String { get }