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

30 lines
575 B
C
Raw Normal View History

2024-03-01 16:54:46 +08:00
//
// RecordVoiceManager.h
// yinmeng-ios
//
2024-03-05 14:04:09 +08:00
// Created by yinmeng on 2024/3/1.
2024-03-01 16:54:46 +08:00
//
#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;
2024-03-01 16:54:46 +08:00
@end
NS_ASSUME_NONNULL_END