OEVoiceKeyboard 基于科大讯飞语音识别键盘

OEVoiceKeyboard 基于科大讯飞语音识别键盘

Swift 其它杂项

详细介绍

OEVoiceKeyboard

基于科大讯飞语音识别键盘

alt

示例:

导入头文件:

#import "UITextField+GFVoiceKeyboard.h"
#import "UITextView+GFVoiceKeyboard.h"
#import "UIViewController+GFVoiceKeyboard.h"

controllerView 全局开启语音键盘:

UIViewController *viewController = [[UIViewController alloc] init];
viewController.enableVoiceKeyboard = YES;

为指定textField 或 textView 开启

UITextField *textField = [[UITextField alloc] init];
textField.enableVoiceKeyboard = YES;

支持 storyboard 设置

alt

注意:

基于科大讯飞SDK使用请设置正确的Appid并导入相应.framework

推荐源码