AliyunAudioRecorder

Deprecated

deprecated


@interface AliyunAudioRecorder : NSObject

* A class that defines audio recorders.

  • * Whether or not the recording is in progress.

    Declaration

    Objective-C

    @property (nonatomic) BOOL isRecording;
  • * The recording callback.

    Declaration

    Objective-C

    @property (nonatomic) id<AliyunAudioRecorderDelegate> delegate;
  • * Initializer.

    Declaration

    Objective-C

    - (id)initWithOutputPath:(NSString *)outputPath;

    Parameters

    outputPath

    The file output path.

    Return Value

    An audiorecorder object.

  • * Starts recording.

    Declaration

    Objective-C

    - (void)startRecord;
  • * Stops recording.

    Declaration

    Objective-C

    - (void)stopRecord;
  • * Finishes the recording process.

    Declaration

    Objective-C

    - (void)finishRecord;
  • * Gets all recorded clips.

    Declaration

    Objective-C

    - (NSArray<AliyunClip *> *)allClips;

    Return Value

    The array of all recorded clips.

  • * Deletes a clip.

    Declaration

    Objective-C

    - (void)deleteClip:(AliyunClip *)clip;

    Parameters

    clip

    The audio clip to be deleted.

  • * Deletes the last clip.

    Declaration

    Objective-C

    - (void)deleteLastClip;
  • * Gets the total duration of the recorded audio.

    Declaration

    Objective-C

    - (float)totalDuration;

    Return Value

    The total duration of the recorded audio.