Type Method


Returns the set of locales that are supported by the speech recognizer.


class func supportedLocales() -> Set<Locale>

Return Value

A set of locales that support speech recognition.


This method returns the locales for which speech recognition is supported. Support for a locale does not guarantee that speech recognition is currently possible for that locale. For some locales, the speech recognizer requires an active Internet connection to communicate with Apple's servers. If the speech recognizer is currently unable to process requests, isAvailable returns false.

Speech recognition supports the same locales that are supported by the keyboard's dictation feature. For a list of these locales, see QuickType Keyboard: Dictation.

See Also

Getting the Current Language

var locale: Locale

The locale of the speech recognizer.