Instance Method

initWithIdentifier:spokenPhrase:pronunciationHint:

Initializes the string with the specified identifier and phrase information.

Declaration

- (instancetype)initWithIdentifier:(NSString *)identifier spokenPhrase:(NSString *)spokenPhrase pronunciationHint:(NSString *)pronunciationHint;

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.

See Also

Initializing a Speakable String

- initWithSpokenPhrase:

Initializes the string with the specified phrase.

- initWithVocabularyIdentifier:spokenPhrase:pronunciationHint:

Initializes the string with a phrase from your app's vocabulary.