A capture output that records audio and saves the recorded audio to a file.


@interface AVCaptureAudioFileOutput : AVCaptureFileOutput


AVCaptureAudioFileOutput implements the complete file recording interface declared by AVCaptureFileOutput for writing media data to audio files. In addition, you can configure options specific to the audio file formats, including writing metadata collections to each file and specifying audio encoding options. AVCaptureAudioFileOutput does not, however, support startRecordingToOutputFileURL:recordingDelegate:—use startRecordingToOutputFileURL:outputFileType:recordingDelegate: instead.


Discovering Supported Types

+ availableOutputFileTypes

Returns an array containing UTIs identifying the file types AVCaptureAudioFileOutput can write.

Starting a Recording

- startRecordingToOutputFileURL:outputFileType:recordingDelegate:

Tells the receiver to start recording to a new file of the specified format, and specifies a delegate that will be notified when recording is finished.

Configuring Output


The settings used to decode or re-encode audio before it is output by the receiver.


A collection of metadata to be written to the receiver's output files.

Creating Output

- init

Creates a new audio file output.

+ new

Creates a new audio file output.


Inherits From

See Also

Audio Capture


A capture output that records audio and provides access to audio sample buffers as they are recorded.