KIOSResult Class Reference

Inherits from NSObject
Declared in KIOSRecognizer.h
KIOSRecognizer.mm

Overview

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

  text

recognition result text

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

Declared In

KIOSRecognizer.h

  cleanText

recognition result clean text; all tokens of type <TOKEN> are removed (e.g. <SPOKEN_NOISE>, etc.)

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

Declared In

KIOSRecognizer.h

  confidence

Confidence of the overall result

@property (nonatomic, readonly, nullable) NSNumber *confidence

Declared In

KIOSRecognizer.h

  words

Array of KIOSWord objects

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

Declared In

KIOSRecognizer.h

  decodingGraphName

Name of the decoding graph used to perform recognition

@property (nonatomic, copy, nullable) NSString *decodingGraphName

Declared In

KIOSRecognizer.h

  asrBundle

Name of the ASR bunde used to perform recognition

@property (nonatomic, copy, nullable) NSString *asrBundle

Declared In

KIOSRecognizer.h

– isEmpty

Returns TRUE if recognition result is empty, FALSE otherwise

- (BOOL)isEmpty

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