AliyunAudioRecorder
Deprecated
deprecated
@interface AliyunAudioRecorder : NSObject
音频录制类
-
是否正在录制
Declaration
Objective-C
@property (nonatomic) BOOL isRecording;
-
录制回调类
Declaration
Objective-C
@property (nonatomic) id<AliyunAudioRecorderDelegate> delegate;
-
初始化
Declaration
Objective-C
- (id)initWithOutputPath:(NSString *)outputPath;
Parameters
outputPath
输出文件路径
Return Value
audiorecorder对象
-
开始录制
Declaration
Objective-C
- (void)startRecord;
-
停止录制
Declaration
Objective-C
- (void)stopRecord;
-
结束录制流程
Declaration
Objective-C
- (void)finishRecord;
-
所有片段
Declaration
Objective-C
- (NSArray<AliyunClip *> *)allClips;
Return Value
获取所有片段集合
-
删除clip
Declaration
Objective-C
- (void)deleteClip:(AliyunClip *)clip;
Parameters
clip
音频片段
-
删除最后一段clip
Declaration
Objective-C
- (void)deleteLastClip;
-
音频录制的总时长 非录制过程中
Declaration
Objective-C
- (float)totalDuration;
Return Value
时长