Recognizes speech from the audio source associated with the specified request, using the specified delegate to manage the results.
- iOS 10.0+
- macOS 10.15+
- Mac Catalyst 13.0+
The task object you can use to manage an in-progress recognition request.
Use this method to initiate the speech recognition process on the audio contained in the request object. This method executes asynchronously and returns a
SFSpeech object that you can use to cancel or finalize the recognition process later. As results become available, the method calls the methods of the provided
Note that the
SFSpeech object returned by this method does not retain your delegate object. You must maintain a strong reference to your delegate while speech recognition is in progress.