A request to recognize speech from captured audio content, such as audio from the device's microphone.
- iOS 10.0+
- macOS 10.15+Beta
- UIKit for Mac 13.0+Beta
SFSpeech object to perform speech recognition on live audio, or on a set of existing audio buffers. For example, use this request object to route audio from a device's microphone to the speech recognizer.
The request object contains no audio initially. As you capture audio, call
append to add audio samples to the request object. The speech recognizer continuously analyzes the audio you appended, stopping only when you call the
end method. (You must call
end explicitly to stop the speech recognition process.)
For a complete example of how to use audio buffers with speech recognition, see SpeakToMe: Using Speech Recognition with AVAudioEngine.