Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting Linear PCM file to M4A file in iOS

Using built-in iOS libraries, how can I convert a linear PCM file recorded using AVAudioRecorder to m4a. I know I can record it originally in that format, but I need it in linear PCM first. I'm semi-familiar with ExtAudioFile but I can't quite get it to do what I want. Any ideas?

Best,

like image 977
Max Woolf Avatar asked Nov 02 '25 02:11

Max Woolf


1 Answers

take a look at this sample project, should do what you want out of the box, you just need to modify it to fit your needs. Sample project. Another way you can do it is using AVFoundation, with AVAssetWriter/AVAssetReader, check out this link for more info

like image 116
Daniel Avatar answered Nov 03 '25 15:11

Daniel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!