A protocol that you adopt in your objects to track the availability of a speech recognizer.


protocol SFSpeechRecognizerDelegate


A speech recognizer's availability can change due to the device's Internet connection or other factors. Use this protocol's optional method to track those changes and provide an appropriate response. For example, when speech recognition becomes unavailable, you might disable related features in your app.


Monitoring the Availability of a Speech Recognizer

func speechRecognizer(SFSpeechRecognizer, availabilityDidChange: Bool)

Tells the delegate that the availability of its associated speech recognizer changed.


Inherits From

See Also

Monitoring the Availability of Speech Recognition

var delegate: SFSpeechRecognizerDelegate?

The delegate object that handles changes to the availability of speech recognition services.

var isAvailable: Bool

A Boolean value that indicates whether the speech recognizer is currently available.