iOS - 如何将m4a转换为mp3? [英] iOS - How to convert m4a to mp3?

查看:1035
本文介绍了iOS - 如何将m4a转换为mp3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上搜索了很多网站,但没有将m4a转换为mp3的示例代码。
有谁知道在iOS中如何做到这一点?谢谢〜

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~

推荐答案

你可以用 AVAudioFile 来读取m4a,另一个 AVAudioFile 用适当的格式设置来编写mp3。但此主题表明,使用CoreAudio无法在iOS中进行mp3编码。

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.

这篇关于iOS - 如何将m4a转换为mp3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆