Type Method

supportedLocales()

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

Declaration

class func supportedLocales() -> Set<Locale>

Return Value

A set of locales that support speech recognition.

Discussion

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.

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