AudioTranscriberSegment
class AudioTranscriberSegment: NSObjectA single transcribed segment emitted by MPPAudioTranscriber.
-
Initializes a new
MPPAudioTranscriberSegment.Declaration
Swift
init(transcript: String, isFinal: Bool, fromTimestampInMilliseconds: Int64, toTimestampInMilliseconds: Int64)Parameters
transcriptThe transcribed text for this segment.
isFinalWhether this segment is final.
fromTimestampInMillisecondsStart timestamp in milliseconds.
toTimestampInMillisecondsEnd timestamp in milliseconds.
Return Value
An initialized
MPPAudioTranscriberSegment. -
Start timestamp of this segment in milliseconds.
Declaration
Swift
var fromTimestampInMilliseconds: Int64 { get } -
Whether this segment is final or an interim hypothesis.
Declaration
Swift
var isFinal: Bool { get } -
End timestamp of this segment in milliseconds.
Declaration
Swift
var toTimestampInMilliseconds: Int64 { get } -
The transcribed text for this segment.
Declaration
Swift
var transcript: String { get }