问题
I have searched through many websites on the internet, but there's no sample code for converting m4a to mp3. Does anyone know how to do this in iOS? Thank~
回答1:
You can use AVAudioFile
to read the m4a, and another AVAudioFile
to write the mp3 with appropriate format settings. But this thread suggests mp3 encoding in iOS is not possible with CoreAudio.
来源:https://stackoverflow.com/questions/19062157/ios-how-to-convert-m4a-to-mp3