Instance Property


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


var contextualStrings: [String] { get set }


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 requiresOnDeviceRecognition: Bool

A Boolean value that determines whether a request must keep its audio data on the device.

var shouldReportPartialResults: Bool

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software