Class YSKNativeRecognizerSettings
The class specifies the settings for embedded speech recognition (an object of the YSKNativeRecognizer
class.
The path to the built-in recognition model is a mandatory setting. Other settings can be specified depending on the task.
Instance Methods
-initWithLocale: | Initializes an object of the |
-initWithLocale: | Initializes an object of the |
Properties
enableVAD | Controls the behavior of the Voice Activity Detector (VAD). |
inactiveTimeout | Time to wait for speech, in seconds, after starting an object of the |
locale | The locale that identifies the voice query language. |
waitForResultTimeout | Server response timeout after sending the last fragment. |
enableVAD | Controls the behavior of the Voice Activity Detector (VAD). |
inactiveTimeout | Time to wait for speech, in seconds, after starting an object of the |
locale | The locale that identifies the voice query language. |
waitForResultTimeout | Server response timeout after sending the last fragment. |
Method Detail
-initWithLocale:
- (instancetype)initWithLocale:(NSLocale *)locale
Initializes an object of the YSKNativeRecognizerSettings
class.
locale | Recognition language. |
locale | Recognition language. |
Returns:
An object of the YSKNativeRecognizerSettings
class.
Property Detail
enableVAD
(assign, readwrite) BOOL enableVAD
Controls the behavior of the Voice Activity Detector (VAD).
If the VAD is disabled, the YSKNativeRecognizer
class object does not detect the end of speech automatically. In this case, call the stopRecording method to stop recording and switch to recognition. Default value: YES
.
inactiveTimeout
(assign, readwrite) NSTimeInterval inactiveTimeout
Time to wait for speech, in seconds, after starting an object of the YSKNativeRecognizer
class.
If the YSKNativeRecognizer
class object does not detect any speech during this timout, it returns the YSKErrorNoSpeechDetected
error in the recognizer:didFailWithError: method. Error codes are listed in YSKErrorCode. Default value: 5 seconds.
locale
(copy, readonly) NSLocale * locale
The locale that identifies the voice query language.
waitForResultTimeout
(assign, readwrite) NSTimeInterval waitForResultTimeout
Server response timeout after sending the last fragment.
If no response with endOfUtterance
= YES
(the recognizer:didReceivePartialResults:withEndOfUtterance: method) is received from the server during this timeout, the YSKNativeRecognizer
class object returns the last result received from the server. Default value: 3 seconds.