IFlyISVDelegate.h
623 Bytes
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
//
// IFlyISVDelegate.h
// msc_UI
//
// Created by admin on 14-9-15.
// Copyright (c) 2014年 iflytek. All rights reserved.
//
#import <Foundation/Foundation.h>
@class IFlySpeechError;
/**
* 声纹回调协议
*/
@protocol IFlyISVDelegate
/**
* 声纹结果回调
*
* @param dic 结果
*/
-(void) onResult:(NSDictionary *)dic;
/**
* 错误码回调
*
* @param errorCode 错误码
*/
-(void) onError:(IFlySpeechError *) errorCode;
@optional
/**
* 等待结果
*/
-(void) onRecognition;
/**
* 音量改变回调
*
* @param volume 音量值
*/
-(void) onVolumeChanged: (int)volume;
@end