KIOSResult Class Reference

Inherits from NSObject
Declared in KIOSRecognizer.h

Overview

An instance of the KIOSResult class, called recognition result, provides results of the recognition.

  text

recognition result text

@property (nonatomic, readonly, nonnull) NSString *text

Declared In

KIOSRecognizer.h

  words

An array of KIOSWord objects that comprise this result

@property (nonatomic, strong, readonly, nullable) NSArray<KIOSWord*> *words

Declared In

KIOSRecognizer.h

– toJSON

JSON representation of the KIOSResult. Example: { “words” : [ { “startTime” : 0.52, “duration” : 0.3, “confidence” : 1, “text” : “GO” }, { “startTime” : 0.82, “duration” : 0.3, “confidence” : 1, “text” : “UP” } ], “confidence” : 1, “cleanText” : “GO UP”, “text” : “GO UP <SPOKEN_NOISE>” }

- (nullable NSString *)toJSON

Declared In

KIOSRecognizer.h