views:

5091

answers:

4

Hello,

is there a way to convert my recorded .caf files to .mp3 using the iPhone SDK / Core Audio, something else?

I've been looking around for a while, but all I've found was a command line uitility (which isn't allowed to run on the iPhone).

Regards

A: 

Since the iPhone shouldn't really be used for processor intensive things such as audio conversion, have you thought about transferring those files to your computer and running the conversion there using the command line tool you mentioned? I'm sure you could automate it pretty easily.

Marc W
Yes, I could do that easily on my server. The problem is that .caf files are very inefficient regarding the file size (about 5 MB/minute). I don't want to bother my users with vast traffic for short audio clips.
Stefan
A: 

Stefan, can you tell me the name of the utility that you use to convert .caf to .mp3 on server?

I am in need of such a utility.

Chintan Patel
Chintan, if you use a Mac OS X system, you can use afconvert (http://developer.apple.com/qa/qa2008/qa1534.html). For the rest, take a look at "Perl Audio Converter" http://pacpl.sourceforge.net/
Stefan
Actually, i am developing an iphone app which would record sound and upload it to internet for sharing. mp3 will be so much better for compatibility and is a must have. So i have 2 options: record in mp3 (which is not possible on iphone, i guess) and record in .caf or .wav and upload it to server to convert it to mp3.I came across PAC but dont have any experience with Perl so didnt touch it. You said you could do that easily on your server. How is that?
Chintan Patel
A: 

I have same problem with converting .wav to .mp3 (either at iPhone side or Server Side). If we can do it at server side, can anybody help for the same?

Thanks in advance!!

+1  A: 

Change the file extension to aiff and then you can easily convert it. Maybe try link text

Daryn