SpeechRecognitionProtocol Protocol Reference
| Declared in | SpeechRecognitionService.h |
|---|
– onPartialResponseReceived:
required method
Called when a partial response is received from the speech recognition service
- (void)onPartialResponseReceived:(NSString *)partialResultParameters
partialResult |
The partial result received from the recognition service. |
|---|
Discussion
Called when a partial response is received from the speech recognition service
Declared In
SpeechRecognitionService.h
– onFinalResponseReceived:
required method
Called when a final response is received from the service.
- (void)onFinalResponseReceived:(RecognitionResult *)resultParameters
result |
The final phrase result received from the recognition service. |
|---|
Discussion
Called when a final response is received from the service.
Declared In
SpeechRecognitionService.h
– onError:withErrorCode:
required method
Called when a non-speech error occurs.
Non-speech errors include connection and authorization errors.
- (void)onError:(NSString *)errorMessage withErrorCode:(int)errorCodeParameters
errorMessage |
A optional error message describing the error. |
|---|---|
errorCode |
The error code being signaled. |
Discussion
Called when a non-speech error occurs.
Non-speech errors include connection and authorization errors.
Declared In
SpeechRecognitionService.h
– onMicrophoneStatus:
required method
Called when the microphone recording status has changed.
- (void)onMicrophoneStatus:(Boolean)recordingParameters
recording |
A flag that indicates whether the microphone is currently recording. |
|---|
Discussion
Called when the microphone recording status has changed.
Declared In
SpeechRecognitionService.h
– onIntentReceived:
Called when intent is received from the service
- (void)onIntentReceived:(IntentResult *)intentParameters
intent |
The intent response received from the recognition service. |
|---|
Discussion
Called when intent is received from the service
Declared In
SpeechRecognitionService.h