SpeechSynthesisVoice

public struct SpeechSynthesisVoice

The struct which represents a voice for speech synthesis.

  • The string representing the language of the voice in the format “language-locale”. E.g. “en-US”.

    Declaration

    Swift

    public let language: String
  • The name of the voice. E.g. “Fred”.

    Declaration

    Swift

    public let name: String?
  • Constructor used to create an instance of SpeechSynthesisVoice.

    Declaration

    Swift

    public init(language: String, name: String?)