Files
yingmeng-ios-switf/yinmeng-ios/Base/Security/RecordVoiceManager.h

29 lines
573 B
C
Raw Normal View History

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