A custom phrase to be resolved by an Intents extension.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
Framework
- Intents
Declaration
class INSpeakableString : NSObject
Overview
When creating your Intents extension, you can define custom vocabulary for some types of intents. For example, a workout app may provide a custom App
file with the names of standard workouts that are shared by all users of the app. In places where those terms might be used, the intent object contains an INSpeakable
object.
Use the contents of an INSpeakable
object to resolve the specified term during the handling of an intent. If the user spoke a term that is defined in your App
file, Siri includes the identifier of that term in the string’s identifier
property. For unrecognized terms, the identifier is nil
.