SpeechTilesAndamento Docs
Get started
SDK Reference · Method

recognizeFileAudio

Starts asynchronous speech recognition by streaming a prerecorded audio file through the real-time recognition path.

Declaration

public func recognizeFileAudio(
    _ mediaJobID: String,
    srTaskID: String,
    sourceURL: URL,
    srParams: STSRParams? = nil,
    audioRecordParams: STAudioRecordParams? = nil,
    recordUtteranceAudio: Bool = false
) -> STResult

Overview

Unlike recognizeFileAudioDirect, this method streams samples from the file in a way that simulates the real-time device-audio recognition path. Consequently it accepts STAudioRecordParams, including the recording-side controls used during that streamed session.

sourceURL identifies the prerecorded utterance. Results are delivered asynchronously through media events.

See Also