Protocol

SFSpeechRecognizerDelegate

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

Declaration

protocol SFSpeechRecognizerDelegate

Overview

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.

Topics

Monitoring the Availability of a Speech Recognizer

func speechRecognizer(SFSpeechRecognizer, availabilityDidChange: Bool)

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

Relationships

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.

var supportsOnDeviceRecognition: Bool

A Boolean value that indicates whether the speech recognizer can operate without network access.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software