A request to recognize speech in a recorded audio file.
- iOS 10.0+
- macOS 10.15+
- Mac Catalyst 13.0+
SFSpeechURLRecognitionRequest object to perform speech recognition on the contents of an existing audio file.
Listing 1 shows a method that performs speech recognition on the contents of a specified audio file. The method uses the default locale and prints the resulting text to standard output.
Creating a Speech Recognition Request
Creates a speech recognition request, initialized with the specified URL.
Accessing the URL of the Audio File