Instance Property

contextualStrings

An array of phrases that should be recognized, even if they are not in the system vocabulary.

Declaration

var contextualStrings: [String] { get set }

Discussion

Use this property to specify short custom phrases that are unique to your app. You might include phrases with the names of characters, products, or places that are specific to your app. You might also include domain-specific terminology or unusual or made-up words. Assigning custom phrases to this property improves the likelihood of those phrases being recognized.

Keep phrases relatively brief, limiting them to one or two words whenever possible. Lengthy phrases are less likely to be recognized. In addition, try to limit each phrase to something the user can say without pausing.

Limit the total number of phrases to no more than 100.

See Also

Configuring the Recognition Request

var shouldReportPartialResults: Bool

A Boolean value that indicates whether you want intermediate results returned for each utterance.