最近项目需要集成语音这块,我选择了科大讯飞的sdk,IFlySpeechRecognizer是不带界面的语音听写控件,显示界面的时候需要用户进行自定义语音动画界面,IFlyRecognizerView是带界面的控件.我会分别介绍这两种显示.
带语音的界面:
#import "iflyMSC/IFlyMSC.h"
@property (nonatomic, strong) IFlyRecognizerView *iflyRecognizerView;//带界面的识别对象
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
if (_iflyRecognizerView == nil) {
[self initIflySound];
}else{
[_iflyRecognizerView start];
}
[self.searchBar resignFirstResponder];