init(language:)
Retrieves a voice for the BCP 47 code language code you specify.
Declaration
init?(language languageCode: String?)Return Value
A voice for the specified language and locale code if the code is valid; otherwise, nil.
Discussion
languageCode: A BCP 47 code that identifies the language and locale for a voice.
Discussion
Pass nil for languageCode to receive the default voice for the system’s language and region.