29 lines
573 B
Objective-C
29 lines
573 B
Objective-C
//
|
|
// 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
|
|
|
|
@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
|