iOS:在设备上创建 MP3 [英] iOS: Create an MP3 on device

查看:22
本文介绍了iOS:在设备上创建 MP3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在设备 (iPhone) 上创建 MP3 音频文件.

我发现无法直接以 MP3 格式录制.
仅可能包含 AIFF、线性 PCM 等的 .caf 文件

我还发现了 here 有一个 AudioConverterFillComplexBuffer 函数,理论上可以将 CAF 文件转换为 MP3,但我找不到任何示例代码或有关如何使用该函数的说明.>

任何帮助将不胜感激.

--迈克尔·凯斯勒

解决方案

尝试使用 LAME - 开源 MP3 编码器库 (liblame)

http://lame.sourceforge.net/

I am trying to create an MP3 audio file on the device (iPhone).

I have found that there is no possibility to record directly in MP3 format.
Only .caf file that may contain AIFF, Linear PCM etc.

I have also found here that there is an AudioConverterFillComplexBuffer function that might, theoretically, convert CAF file to MP3, but I can't find any sample code or explanation on how to use this function.

Any help will be greatly appreciated.

-- Michael Kessler

解决方案

Try using LAME - open source MP3 encoder library (liblame)

http://lame.sourceforge.net/

这篇关于iOS:在设备上创建 MP3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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