AVCaptureAudioFileOutput
A capture output that records audio and saves the recorded audio to a file.
Declaration
class AVCaptureAudioFileOutputOverview
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 startRecording(to:recordingDelegate:)—use startRecording(to:outputFileType:recordingDelegate:) instead.