---
title: currentLanguageCode()
framework: avfaudio
role: symbol
role_heading: Type Method
path: avfaudio/avspeechsynthesisvoice/currentlanguagecode()
---

# currentLanguageCode()

Returns the language and locale code for the user’s current locale.

## Declaration

```swift
class func currentLanguageCode() -> String
```

## Return Value

Return Value A string that contains the BCP 47 language and locale code for the user’s current locale.

## Discussion

Discussion This code reflects the user’s language and region preferences in the Settings app.

## See Also

### Working with language codes

- [language](avfaudio/avspeechsynthesisvoice/language.md)
