AudioTranscriber
class AudioTranscriber : NSObjectPerforms automatic speech recognition (ASR) on streaming mono PCM float audio samples.
-
Creates a new instance of
AudioTranscriberfrom the givenAudioTranscriberOptions.Declaration
Swift
init(options: AudioTranscriberOptions) throws -
Creates a new instance of
AudioTranscriberfrom a local model asset path.Declaration
Swift
convenience init(modelPath: String) throws -
Transcribes an array of mono PCM float audio samples in [-1.0, 1.0].
Declaration
Swift
func transcribe(samples: [NSNumber], endOfStream: Bool) throws -> AudioTranscriberResult -
Flushes any remaining buffered audio and finalizes the current stream.
Declaration
Swift
func finishStream() throws -> AudioTranscriberResult -
Prewarms the underlying inference engine to reduce first-chunk latency.
Declaration
Swift
func prewarm() throws -
Releases underlying inference engine and processor resources.
Declaration
Swift
func close() throws