<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFCustomLanguageModelData/supportedPhonemes(locale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech25SFCustomLanguageModelDataC17supportedPhonemes6localeSaySSG10Foundation6LocaleV_tFZ"
  },
  "title" : "supportedPhonemes(locale:)"
}
-->

# supportedPhonemes(locale:)

List the supported subset of X-SAMPA pronunciations supported by this locale for the Speech framework.

```
static func supportedPhonemes(locale: Locale) -> [String]
```

## Parameters

`locale`

the region and language whose supported pronunciations are being queried

## Discussion

SFCustomLanguageModelData accepts custom pronunciations whose phonetic representations are spelled out
using an alphabet of pronunciations called the Extended Speech Assessment Methods Public Alphabet, or
X-SAMPA. X-SAMPA consists of ASCII characters that, individually or in combination, represents sounds
made by people when speaking, and is preferred in this context over the International Phonetic Alphabet
(IPA) for ease of typing. Each locale supports only a subset of all possible sounds represented by
X-SAMPA symbols, and this method exists to allow developers to query for the set of sounds that can be
used for a given locale’s custom pronunciations facility.

---

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)