Files
yingmeng-ios-switf/yinmeng-ios/Base/Security/RecordVoiceManager.h
2024-03-23 20:47:19 +08:00

30 lines
575 B
Objective-C

//
// RecordVoiceManager.h
// yinmeng-ios
//
// Created by yinmeng on 2024/3/1.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface RecordVoiceManager : NSObject
@property (nonatomic, strong) AVAudioRecorder *recorder;
@property (nonatomic, copy) NSString *path;
@property (nonatomic, copy) NSString *file;
@property (nonatomic, strong) AVAudioPlayer *player;
@property (nonatomic, assign) BOOL isPlayVoice;
- (void)initWithRecord;
-(void)stopRecord;
- (void)playFilePathVoice;
@end
NS_ASSUME_NONNULL_END