init(vocabularyIdentifier:spokenPhrase:pronunciationHint:)
Initializes the string with a phrase from your app’s vocabulary.
Declaration
init(vocabularyIdentifier: String, spokenPhrase: String, pronunciationHint: String?)Parameters
- vocabularyIdentifier:
The identifier of a phrase that your app registered as part of its vocabulary.
- spokenPhrase:
The spoken phrase associated with that vocabulary.
- pronunciationHint:
A hint at how the spoken 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.