init(identifier:spokenPhrase:pronunciationHint:)
Initializes the string with the specified identifier and phrase information.
Declaration
convenience init(identifier: String, spokenPhrase: String, pronunciationHint: String?)Parameters
- identifier:
The identifier associated with the phrase in your Intents extension’s custom vocabulary file.
- spokenPhrase:
The phrase to be spoken.
- pronunciationHint:
A hint about how the phrase is pronounced. This string is not a phonetic spelling of the original phrase, but is a string that has an equivalent sound when spoken. For example, the phrase “iTunes” could have “eye toons” as its pronunciation string.
Return Value
An initialized speakable string object.