An object that represents the textual interpretation of a spoken phrase as dictated by a user.


class UIDictationPhrase : NSObject


When the user chooses dictation input on a supported device, the system automatically inserts recognized phrases into the current text view. You can use an object of the UIDictationPhrase class to obtain a string representing a phrase a user has dictated. In the case of ambiguous dictation results, a dictation phrase object provides an array containing alternative strings. Methods in the UITextInput protocol allow your app to respond to the completion of dictation.


Obtaining Textual Interpretations of Spoken Text

var alternativeInterpretations: [String]?

An array of alternative textual interpretations of a dictated phrase.

var text: String

The most likely textual interpretation of a dictated phrase.


Inherits From

Conforms To

See Also


protocol UITextInput

A set of methods you implement to interact with the text input system and enable features such as autocorrection and multistage text input in documents.

protocol UITextInputDelegate

An intermediary between a document and the text input system.

protocol UITextInputTokenizer

A tokenizer, which is an object that allows the text input system to evaluate text units of different granularities.

protocol UIKeyInput

A set of methods a subclass of UIResponder uses to implement simple text entry.

class UITextInputMode

The current text-input mode.

class UITextInputStringTokenizer

A base implementation of the UITextInputTokenizer protocol.

class UIInputView

An object that displays and manages custom input for a view when that view becomes the first responder.