Aracılığıyla paylaş


Class SPXRecognizer

Declaration

@class SPXRecognizer : NSObject;

Description

Defines the base class SPXRecognizer which mainly contains common event handlers.

Methods

addSessionStartedEventHandler:

Subscribes to the SessionStarted event using the specified handler.

- (void)addSessionStartedEventHandler:(SPXSessionEventHandler _Nonnull)eventHandler

Parameters

  • eventHandler - the handler function for this event.

addSessionStoppedEventHandler:

Subscribes to the SessionStopped event using the specified handler.

- (void)addSessionStoppedEventHandler:(SPXSessionEventHandler _Nonnull)eventHandler

Parameters

  • eventHandler - the handler function for this event.

addSpeechStartDetectedEventHandler:

Subscribes to the SpeechStartDetected event using the specified handler.

- (void)addSpeechStartDetectedEventHandler:(SPXRecognitionEventHandler _Nonnull)eventHandler

Parameters

  • eventHandler - the handler function for this event.

addSpeechEndDetectedEventHandler:

Subscribes to SpeechEndDetected event using the specified handler.

- (void)addSpeechEndDetectedEventHandler:(SPXRecognitionEventHandler _Nonnull)eventHandler

Parameters

  • eventHandler - the handler function for this event.

Properties

properties

@property (readonly, atomic) id<SPXPropertyCollection> _Nullable properties;

The collection of properties and their values defined for this SPXRecognizer.