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)requestAuthorization
Declared 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 ))handler
Parameters
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 *)audioBuffer
Parameters
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)endAudio
Declared In
ORKSpeechRecognizer.h