YSKInitializer class

#import <YSKInitializer.h>

Interface for a single-use initializer.

Initialization is an internal process for initializing internal SpeechKit mechanisms. Initialization may require executing lengthy read operations from permanent memory or network access, and generally takes a significant amount of time. This is why a special mechanism has been introduced for performing initialization when it is convenient for the user.

In the current implementation, initialization sends a request to the server and gets a response with a set of parameters and configurations (for example, the confidence thresholds), which are then used during speech recognition.

The initializer is designed to carry out a single startup and may not be reused.

The YSKInitializer object controls the initialization process. In the current implementation, this means controlling the network connections.

Note.

SpeechKit must be initialized using YSKSpeechKit::configureWithAPIKey: before you can create YSKInitializer objects.

Instance methods

- dealloc

Releases resources used by the initializer.

- init

Initializes a single-use initializer object.

- start

Starts the initialization process.

Class methods

+ isInitializerCompleted

Checks whether initialization has already been performed.

Properties

delegate

The delegate will get notifications about the beginning and end of the startup operation.

Method descriptions

- dealloc

- (void) dealloc

Releases resources used by the initializer.

- init

- (instancetype) init

Initializes a single-use initializer object.

To start the initialization process, call YSKInitializer::start.

+ isInitializerCompleted

+ (BOOL) isInitializerCompleted

Checks whether initialization has already been performed.

- start

- (void) start

Starts the initialization process.

Property descriptions

delegate

(weak, readwrite) id< YSKInitializerDelegate > delegate

Delegate for notification about initialization progress

The delegate will get notifications about the beginning and end of the startup operation.