OSSSpeechRecognitionTaskType
public enum OSSSpeechRecognitionTaskType : Int
The speech recognition task type.
-
Undefined is the standard recognition type and allows the system to decide which type of task is best.
Declaration
Swift
case undefined = 0
-
Use captured speech for text entry purposes.
Use this when doing a similar task that of the keyboard voice to text function.
Declaration
Swift
case dictation = 1
-
Use this short speechs that have specific words or terms.
Declaration
Swift
case search = 2
-
Use this for short speechs such as “Yes”, “No”, “Thanks”, etc.
Declaration
Swift
case confirmation = 3
-
Returns a speech recognition hint based on the enum value.
Declaration
Swift
public var taskType: SFSpeechRecognitionTaskHint { get }