IFlyVoiceWakeuperDelegate.h 1001 Bytes
Newer Older
zhukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

//
//  IFlyVoiceWakeuperDel.h
//  wakeup
//
//  Created by admin on 14-3-18.
//  Copyright (c) 2014年 iflytek. All rights reserved.
//



#import <Foundation/Foundation.h>

@class IFlySpeechError;

@protocol IFlyVoiceWakeuperDelegate <NSObject>

@optional

/*!
 * 录音开始
 */
-(void) onBeginOfSpeech;

/*!
 * 录音结束
 */
-(void) onEndOfSpeech;

/*!
 * 会话错误
 *
 * @param errorCode 错误描述类,
 */
- (void) onCompleted:(IFlySpeechError *) error;

/*!
 * 唤醒结果
 *
 * @param resultDic 唤醒结果字典
 */
-(void) onResult:(NSMutableDictionary *)resultDic;

/*!
 * 音量反馈,返回频率与录音数据返回回调频率一致
 *
 * @param volume 音量值
 */
- (void) onVolumeChanged: (int)volume;

/*!
 * 扩展事件回调<br>
 * 根据事件类型返回额外的数据
 *
 @param eventType 事件类型,具体参见IFlySpeechEvent枚举。
 */
- (void) onEvent:(int)eventType isLast:(BOOL)isLast arg1:(int)arg1 data:(NSMutableDictionary *)eventData;

@end