Files i forked from https://github.com/suifengqjn/IOS10Speech , 2017-6-5 no modify
Files i forked from https://github.com/suifengqjn/IOS10Speech , 2017-6-5 i modify
Demo code All here
- import framework:
Speech.framework, SystemConfiguration.framework - add info.plist Privacy:
NSMicrophoneUsageDescription(Privacy - Microphone Usage Description), NSSpeechRecognitionUsageDescription(Privacy - Speech Recognition Usage Description) - add i modified files and some..
add
XCSpeechRecognizer .h .m in your project
XCSpeechRecognizerDelegate in your viewcontroller file
add
@property (nonatomic , strong) UIButton * speechButton;
@property (nonatomic , strong) XCSpeechRecognizer * speechXCSpeechRecognizer;
add
NSString *regnizedNString; - Demo code:
see viewcontroller.m file