简体   繁体   English

iOS - 如何将m4a转换为mp3?

[英]iOS - How to convert m4a to mp3?

I have searched through many websites on the internet, but there's no sample code for converting m4a to mp3. 我在互联网上搜索了很多网站,但没有将m4a转换为mp3的示例代码。 Does anyone know how to do this in iOS? 有谁知道如何在iOS中这样做? Thank~ 谢谢〜

You can use AVAudioFile to read the m4a, and another AVAudioFile to write the mp3 with appropriate format settings. 您可以使用AVAudioFile读取m4a,使用另一个AVAudioFile来编写具有适当格式设置的mp3。 But this thread suggests mp3 encoding in iOS is not possible with CoreAudio. 但是这个线程表明,使用CoreAudio不可能在iOS中进行mp3编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM