recordFileAudio
Starts asynchronous recording/processing from an audio-file source to the configured recording destination.
Declaration
public func recordFileAudio(
_ mediaJobID: String,
sourceURL: URL,
audioRecordParams: STAudioRecordParams
) -> STResultOverview
Starts asynchronous recording/processing from an audio-file source to the configured recording destination. 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.
Parameters
mediaJobID is the application-assigned job identifier returned with related events.
sourceURL identifies the source audio file.
audioRecordParams controls the destination and recording behavior.
Return value
Returns .success when the request is accepted. The current runner also checks recorder initialization and recording permission before forwarding the operation to the recorder.