0

i will like to convert itunes music files in to a low bandwidth PCM for uploading.

How to convert m4a file to aac adts file in Xcode?

Real-time converting the PCM buffer to AAC data for iOS using Remote IO and Audio Convert Service

iOS: Create an MP3 on device

i saw a few threads but not too sure how do i go about it. Could anyone provide me a tutorial link please ?

any comment are greatly appreciated.

Community
  • 1
  • 1
Desmond
  • 5,001
  • 14
  • 56
  • 115
  • 1
    Use ExtAudioFileConvert API from Apple. [Apple docs](https://developer.apple.com/library/ios/samplecode/iPhoneExtAudioFileConvertTest/Introduction/Intro.html) have a sample. Here is a tutorial:[Easy AAC compressed audio conversion on iOS](http://atastypixel.com/blog/easy-aac-compressed-audio-conversion-on-ios/) – CaptJak Aug 20 '13 at 03:13
  • @CaptJak thanks for the answer. if you could put is as an answer that will be great! also do you know how to cut out certain portion of the music ? i.e this music is 3minutes long but i just need the 30sec only – Desmond Aug 20 '13 at 05:03
  • I added the answer. For the other question, I think it might be wise to post it as different question. I don't remember exactly how it's done, and if someone else can answer the question before I can remember, it would be easier to find if it was on it's own. And it would be good to add some more detail (i.e. do you need the first 30 seconds, or out of the middle somewhere? Are you trying to do something like the iTunes song preview?) – CaptJak Aug 20 '13 at 13:34
  • I answered your [other question here](http://stackoverflow.com/questions/18328299/how-to-trim-or-crop-music-from-itunes-library/18347949#18347949) – CaptJak Aug 21 '13 at 03:07

1 Answers1

1

The easiest way to convert your audio files is by using the EXTAudioFileConvert API from Apple.

Tutorial on using the EXTAudioFileConvert can be found at: Easy AAC compressed audio conversion on iOS.

CaptJak
  • 3,592
  • 1
  • 29
  • 50