Tags : Swift 4
As you know, dngPhotoDataRepresentation() API has deprecated at iOS 11 and later. So, We need to change the API to the fileDataRepresentation(). But How?
MP3 file format is popular but iOS can’t support for recording with MP3 file format. Here is a sample code using the lame which can convert pcm to mp3.