Contents

init(name:identifier:primaryLanguages:supportedLanguages:)

Creates a voice with a name, an identifier, and language information.

Declaration

init(name: String, identifier: String, primaryLanguages: [String], supportedLanguages: [String])

Parameters

  • name:

    The localized name of the voice.

  • identifier:

    The unique identifier for the voice.

  • primaryLanguages:

    A list of BCP 47 codes that identify the primary languages.

  • supportedLanguages:

    A list of BCP 47 codes that identify the languages the voice supports.