---
title: supportedLocales()
framework: speech
role: symbol
role_heading: Type Method
path: speech/sfspeechrecognizer/supportedlocales()
---

# supportedLocales()

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

## Declaration

```swift
class func supportedLocales() -> Set<Locale>
```

## Return Value

Return Value A set of locales that support speech recognition.

## Discussion

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

- [locale](speech/sfspeechrecognizer/locale.md)
