YSKSpeechRecognitionViewControllerDelegate protocol

Instance methods

- speechRecognitionViewController:didFailWithError:

Called when the recognition process failed with an error.

- speechRecognitionViewController:didFinishWithResult:

Called when the recognition process completes successfully.

Method descriptions

- speechRecognitionViewController:didFailWithError:

- (void) speechRecognitionViewController:(YSKSpeechRecognitionViewController *) speechRecognitionViewController
didFailWithError:(NSError *) error

Called when the recognition process failed with an error.

Various errors may occur during recognition. Some of them are handled by the recognizer itself, while others cannot be processed by it. This function is called only if the recognizer can't correct the erorr, or when the user canceled the request. The method is called only if recognition failed with an error. Otherwise, speechRecognitionViewController:didFinishWithResult: is called.
Parameters:
error

Error during speech recognition.

- speechRecognitionViewController:didFinishWithResult:

- (void) speechRecognitionViewController:(YSKSpeechRecognitionViewController *) speechRecognitionViewController
didFinishWithResult:(NSString *) result

Called when the recognition process completes successfully.

This is the mechanism used by the recognizer to provide recognition results. The method is called only if speech was recognized successfully. Otherwise, speechRecognitionViewController:didFailWithError: is called.
Parameters:
result

string containing the recognition result.