在iPhone上将.caf转换为.mp3 [英] Convert .caf to .mp3 on iPhone
问题描述
我意识到这个问题已经被问过,但我没有看到一个答案,为我的需要。基本上我有.caf格式的全长歌曲,但我需要能够从服务器上传/下载。是否可以在iPhone上进行压缩(像.mp3或.wav),然后将它们发送到服务器?
I realize this question has been asked before, but I haven't seen an answer that works for my needs. Basically I have full length songs in .caf format but I need to be able to upload/download them from a server. Is it viable to do compression (to something like .mp3 or .wav) on the iPhone and then send them to the server? How would I go about doing this?
推荐答案
请参阅 AudioConverterServices ..这个魔术的功能是 AudioConverterNew 。 。但是请注意,您只能从可变比特率(VBR)文件转换为PCM(无损格式),从PCM转换为VBR ..因此在您的情况下,您必须从转换文件。 到
到
,然后从
PCM
到 .mp3
或任何你想要的格式。
Refer to AudioConverterServices.. the function that does the magic trick is AudioConverterNew.. however note that you can only convert from a variable bit rate (VBR) file to PCM (lossless format), and from PCM to VBR.. so in your case you will have to convert the file from .caf
to PCM
, then from PCM
to .mp3
or whatever format you want.
有一个全面的例子,说明进行音频转换所需的所有步骤..下载免费样本代码 for the预订学习核心音频。您需要第6章音频转换的示例代码。 (任何认真对待核心音频的人都应该买那本书)。
For a comprehensive example that illustrates all the steps necessary in doing an audio conversion.. download the free sample code for the book Learning Core Audio. You want chapter 6 sample code for audio conversion. (anyone who is serious about core audio should buy that book).
这篇关于在iPhone上将.caf转换为.mp3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!