KeenASR Framework v2.1 (8b72cc4)
Keen Research
Loading...
Searching...
No Matches
KIOSResult Class Reference

#include <KIOSRecognizer.h>

Instance Methods

(nonnull NSString *) - description
(nullable NSString *) - toJSON
(nullable NSDictionary *) - toDictionary

Properties

NSString * text
NSString * cleanText
NSArray< KIOSWord * > * words
NSNumber * confidence

Detailed Description

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

Method Documentation

◆ toJSON

- (nullable NSString *) 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>" }

Property Documentation

◆ cleanText

- (NSString*) cleanText
readnonatomicassign

clean recognition result text, i.e. removes all 'special words' (e.g. <SPOKEN_NOISE> or any other token inside <>)

◆ text

- (NSString*) text
readnonatomicassign

recognition result text

◆ words

- (NSArray<KIOSWord *>*) words
readnonatomicstrong

An array of KIOSWord objects that comprise this result


The documentation for this class was generated from the following file: