views:

32

answers:

1

Hi,

I am recording audio on the iPhone to a CAF file with kAudioFormatiLBC, the recording works fine.

I want to be able to take a sample and also get it to convert to other formats after I have uploaded it to by ruby on rails webservice.

I am trying to use sox but get:

sox in.caf out.mp3

sox FAIL formats: can't open input file `in.caf': Supported file format but unsupported encoding.

Similar with ffmpeg I get:

Unable to find a suitable output format for 'in.caf'

Any ideas?

Thanks

A: 

If your server is running OSX, you should be able to use afconvert. Alternatively, use a different codec.

The Wikipedia article on iLBC has a few links which might be useful. The top of http://ilbcfreeware.org/software.html links to the RFC and an awk script for extracting the reference source code.

tc.