---
title: INSpeakableString
framework: intents
role: symbol
role_heading: Class
path: intents/inspeakablestring
---

# INSpeakableString

A custom phrase to be resolved by an Intents extension.

## Declaration

```swift
class INSpeakableString
```

## Mentioned in

Improving interactions between Siri and your messaging app

## Overview

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 AppIntentVocabulary.plist 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 INSpeakableString object. Use the contents of an INSpeakableString object to resolve the specified term during the handling of an intent. If the user spoke a term that is defined in your AppIntentVocabulary.plist file, Siri includes the identifier of that term in the string’s identifier property. For unrecognized terms, the identifier is nil.

## Topics

### Initializing a Speakable String

- [init(spokenPhrase:)](intents/inspeakablestring/init(spokenphrase:).md)
- [init(vocabularyIdentifier:spokenPhrase:pronunciationHint:)](intents/inspeakablestring/init(vocabularyidentifier:spokenphrase:pronunciationhint:).md)
- [init(identifier:spokenPhrase:pronunciationHint:)](intents/inspeakablestring/init(identifier:spokenphrase:pronunciationhint:).md)

### Initializers

- [init(coder:)](intents/inspeakablestring/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [INSpeakable](intents/inspeakable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### String

- [INSpeakable](intents/inspeakable.md)
