| Inherits from | NSObject |
|---|---|
| Declared in | IFlyVoiceWakeuper.h |
@property (nonatomic, assign) id<IFlyVoiceWakeuperDelegate> delegate@property (nonatomic, readonly) BOOL isListening+ (instancetype)sharedInstance- (BOOL)startListening- (BOOL)stopListening- (BOOL)cancel- (NSString *)getParameter:(NSString *)key- (BOOL)setParameter:(NSString *)value forKey:(NSString *)key- (BOOL)writeAudio:(NSData *)audioData| audioData | 音频数据 |
|---|---|
| Conforms to | NSObject |
|---|---|
| Declared in | IFlyVoiceWakeuperDelegate.h |
- (void)onBeginOfSpeech- (void)onEndOfSpeech- (void)onCompleted:(IFlySpeechError *)error| errorCode | 错误描述类 |
|---|---|
- (void)onResult:(NSMutableDictionary *)resultDic| resultDic | 唤醒结果字典 |
|---|---|
- (void)onVolumeChanged:(int)volume| volume | 音量值 |
|---|---|
- (void)onEvent:(int)eventType isLast:(BOOL)isLast arg1:(int)arg1 data:(NSMutableDictionary *)eventData| eventType | 事件类型,具体参见IFlySpeechEvent枚举。 |
|---|---|