PhoneticString

public struct PhoneticString : Equatable

Represents a phonetic string.

Lifecycle

  • Creates an instance with the specified parameters.

    Throws

    An error of the type InitializationError.

    Declaration

    Swift

    public init(
        value: String,
        alphabet: String,
        language: Locale
    ) throws

    Parameters

    value

    UTF-8 encoded string representing the phonetic encoding.

    alphabet

    Phonetic alphabet to be used as the value of ssml:alphabet tag to conform to “Phonetic Alphabet Registry” encoded as UTF-8 string.

    language

    The language of the phonetic string as a Locale.

Public

  • UTF-8 encoded string representing the phonetic encoding.

    Declaration

    Swift

    public let value: String
  • Phonetic alphabet to be used as the value of ssml:alphabet tag to conform to “Phonetic Alphabet Registry” encoded as UTF-8 string.

    Declaration

    Swift

    public let alphabet: String
  • The language of the phonetic string as a Locale.

    Declaration

    Swift

    public let language: Locale

PhoneticString.InitializationError