Supported Audio file formats in iPhone

avaudioplayer, iphone

Solution

mp3 why not. From: The Multimedia Support Section of the Reference Library

Audio Playback and Recording Formats

The audio playback formats supported in iOS are the following:

- AAC (AAC-LC)

- HE-AAC (v1 and v2)

- xHE-AAC - supported since iOS 13.0

- AC-3 (Dolby Digital) - supported since iOS 9.3

- E-AC-3 (Dolby Digital Plus) - supported since iOS 9.3

- MP3 (MPEG-1 audio layer 3

- AMR (Adaptive Multi-Rate, a format for speech) - not supported since iOS 4.3

- ALAC (Apple Lossless)

- iLBC (internet Low Bitrate Codec, another format for speech)

- IMA4 (IMA/ADPCM)

- linear PCM (uncompressed)

- µ-law and a-law

The audio recording formats supported in iOS are the following:

- AAC (on supported devices only)

- ALAC (Apple Lossless)

- iLBC (internet Low Bitrate Codec, for speech)

- IMA4 (IMA/ADPCM)

- linear PCM

- µ-law and a-law

Problem

What are the supported audio files formats in iPhone? If I want to play a 2 hour audio files , what is the best audio file format I should have in my App? Thanks

Original source