//
//  IFLYSpeechTwo.h
//  MobilePortal
//
//  Created by caiyang on 2020/5/8.
//  Copyright © 2020 yin chen. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol IFLYSpeechTwoDelegate <NSObject>

@optional

// text
- (void)chatMessageWithSendText:(NSString *)text;

@end


@interface IFLYSpeechTwo : NSObject

@property (nonatomic, weak) id<IFLYSpeechTwoDelegate> delegate;

+ (IFLYSpeechTwo *)ShareIFLYSpeechTwo;
-(void)initIfly;
/// 开始录音
-(void)startParsing;
/// 结束录音
-(void)stopListening;
/// 停止录音
-(void)cancel;
@end

NS_ASSUME_NONNULL_END
