SDK Reference · Method
recognizeFileAudioDirect
Starts asynchronous recognition directly from a prerecorded audio file without real-time audio streaming.
Declaration
public func recognizeFileAudioDirect(
_ mediaJobID: String,
srTaskID: String,
sourceURL: URL,
srParams: STSRParams? = nil
) -> STResultOverview
Starts asynchronous recognition directly from a prerecorded audio file without real-time audio streaming. Check the documented prerequisites, parameters and return value below. For asynchronous operations, use the relevant media events to observe actual completion rather than treating an accepted request as finished.
When to use it
Use this path when the input already exists as an utterance file and the real-time recording/streaming behavior of recognizeFileAudio is not required.
The source describes this as offline/direct file processing: audio samples are read directly from the file rather than streamed in real time.