Class SPXKeywordRecognitionModel

Declaration

@class SPXKeywordRecognitionModel : NSObject;

Description

Represents keyword recognition model used with StartKeywordRecognitionAsync methods.

Methods

initFromFile:

Creates a keyword recognition model using the specified file.

- (instancetype _Nullable)initFromFile:(NSString * _Nonnull)fileName

Parameters

  • fileName - The file name of the keyword recognition model.

Returns

an instance of keyword recognition model.

initFromFile:error:

Creates a keyword recognition model using the specified file.

- (instancetype _Nullable)initFromFile:(NSString * _Nonnull)fileName
    error:(NSError * _Nullable * _Nullable)outError

Parameters

  • fileName - The file name of the keyword recognition model.
  • outError - error information.

Returns

an instance of keyword recognition model.