PhoneticString
public struct PhoneticString
extension PhoneticString: Equatable
Represents a phonetic string.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializer.
Declaration
Swift
public init( value: String, alphabet: String, language: Locale ) throws
Parameters
value
UTF-8 encoded string representing the phonetic encoding.
language
The language of the phonetic string as a
Locale
.alphabet
Phonetic alphabet to be used as the value of ssml:alphabet tag to conform to “Phonetic Alphabet Registry” encoded as UTF-8 string.
-
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