Creates a speech recognizer associated with the specified locale.


init?(locale: Locale)



The locale object representing the language you want to use for speech recognition. For a list of languages supported by the speech recognizer, see supportedLocales().

Return Value

An initialized speech recognizer object, or nil if the specified language was not supported.


If you specify a language that is not supported by the speech recognizer, this method attempts to fall back to the language used by the keyboard for dictation. If that fails, this method returns nil.

Even if this method returns a valid speech recognizer object, the speech recognition services may be temporarily unavailable. To determine whether speech recognition services are available, check the isAvailable property.

See Also

Creating a Speech Recognizer


Creates a speech recognizer associated with the user's default language settings.

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