ORKStreamingAudioRecorder Class Reference

Inherits from ORKRecorder : NSObject
Declared in ORKStreamingAudioRecorder.h

The ORKStreamingAudioRecorder class represents a recorder that uses the app’s AVAudioSession object to record audio.

To audio recording will be discontinued if task enters the background.

– initWithIdentifier:step:outputDirectory:

Returns an initialized audio recorder using the specified step, and output directory.

- (instancetype)initWithIdentifier:(NSString *)identifier step:(nullable ORKStep *)step outputDirectory:(nullable NSURL *)outputDirectory

Parameters

identifier

The unique identifier of the recorder (assigned by the recorder configuration).

step

The step that requested this recorder.

outputDirectory

The directory in which the audio output should be stored.

Return Value

An initialized audio recorder.

Declared In

ORKStreamingAudioRecorder.h

  audioEngine

Reference to the audio recorder being used.

@property (nonatomic, strong, readonly, nullable) AVAudioEngine *audioEngine

Discussion

The value of this property is used in the audio task in order to display recorded volume and metering in real time during the task.

Declared In

ORKStreamingAudioRecorder.h