<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFSpeechRecognizer/init(locale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSpeechRecognizer(im)initWithLocale:"
  },
  "title" : "init(locale:)"
}
-->

# init(locale:)

Creates a speech recognizer associated with the specified locale.

```
init?(locale: Locale)
```

## Parameters

`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()`](/documentation/Speech/SFSpeechRecognizer/supportedLocales()).

## Return Value

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

## Discussion

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`](/documentation/Speech/SFSpeechRecognizer/isAvailable) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)