An object that represents the textual interpretation of a spoken phrase as dictated by a user.
SDKs
- iOS 5.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
class UIDictationPhrase : NSObject
Overview
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 UIDictation
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 UIText
protocol allow your app to respond to the completion of dictation.