I am using AVAudioFile.write to convert a raw PCM data buffer into an aac file. However, the file is too big - about 3KB/s (i.e. 30s audio costs ~90KB)
AVAudioFile.write
aac