ORKSpeechRecognizer Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | ORKSpeechRecognizer.h ORKSpeechRecognizer.m |
+ requestAuthorization
Asks the user to grant your app permission to perform speech recognition.
+ (void)requestAuthorizationDeclared In
ORKSpeechRecognizer.h
– startRecognitionWithLocale:reportPartialResults:responseDelegate:errorHandler:
Starts speech recognition for the specified locale
- (void)startRecognitionWithLocale:(NSLocale *)locale reportPartialResults:(BOOL)reportPartialResults responseDelegate:(id<ORKSpeechRecognitionDelegate>)delegate errorHandler:(void ( ^ ) ( NSError *error ))handlerParameters
locale |
Device’s locale |
|---|---|
reportPartialResults |
A boolean value that indicates whether partial, nonfinal results for each utterance are reported. |
delegate |
The delegate for speech recognition response |
handler |
A handler to report errors |
Declared In
ORKSpeechRecognizer.h
– addAudio:
Appends audio to the end of the recognition request.
- (void)addAudio:(AVAudioPCMBuffer *)audioBufferParameters
audioBuffer |
A buffer of audio |
|---|
Declared In
ORKSpeechRecognizer.h
– endAudio
Indicates that the audio source is finished and no more audio will be appended to the recognition request.
- (void)endAudioDeclared In
ORKSpeechRecognizer.h