Class YSKSpeechKit

Singleton class for configuring and controlling the library.

You don't need to explicitly create or destroy objects of the YSKSpeechKit class. To access an object, use the sharedInstance method that creates an object of the YSKSpeechKit class when called for the first time. This object is destroyed when the app closes.

Method Detail

+sharedInstance

Property Detail

apiKey

(copy, readwrite) NSString * apiKey

The developer's API key provided by Yandex.

Set the property value before using any of the library functionality (for example, before creating an object of the YSKPhraseSpotter class). The API key is verified when working with the server; the verification may fail with the YSKErrorInvalidApiKey error. Possible error codes are listed in YSKErrorCode.

deviceId

(copy, readwrite) NSString * deviceId

The device ID that will be used in the recognition request.

The ID must be the same for all requests from a particular app on a particular device.

logLevel

speechkitVersion

(copy, readonly) NSString * speechkitVersion

Library version.

uuid

(copy, readwrite) NSString * uuid

The ID that will be used in the recognition request.

Unique ID of the app or service user. The value of this field is passed in every request to SpeechKit. Used for tracking sessions of individual users and apps. The value should be generated the first time the app is launched on the device and stored in permanent storage. Subsequent runs of the app should use the saved value.