Common audio format for Android, iOS, Windows Phone
I believe the old .wav format should do the trick. It seems to be supported by both android and ios. I did not check wm7, but it is in wm6.5, so my guess is that it will be supported also:
http://developer.android.com/guide/appendix/media-formats.html
http://msdn.microsoft.com/en-us/library/cc907934.aspx
http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html
Choose which audio file format to use between Android and IOS?
At last we use amr. Ios client do the decode job.
Supported Audio file formats in iPhone
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
What are the limitations of HTML5 audio on Android and iOS?
Summary
MP3 seems to be the best bet for broad platform coverage. It is supported by the newest versions of all major desktop and mobile browsers. (Safari on iOS & Chrome on Android)
At the moment, playback through DataURIs is limited mainly to desktop browsers, but will soon become available in Android.
Android (default browser)
Formats
- Ogg Vorbis: Yes
- MP3: Yes
- FLAC: No (not 100% certain)
Data URIs
Yes
Autoplay allowed
TBC
User interaction event required
TBC
Limitations
- Full audio doesn't seem to play. (tested with short sounds)
Android (Chrome)
Formats
- Ogg Vorbis: Yes
- MP3: Yes
- FLAC: Yes
Data URIs
Yes (bug fixed in Chrome 34, which is currently in beta)
Autoplay allowed
No (bug)
User interaction event required
Yes
Limitations
- "ended" event never fires. (bug)
- "ended" event doesn't have user interaction privileges, so audio cannot be chained. (bug)
iOS
Formats
- Ogg Vorbis: No
- MP3: Yes
- FLAC: No
Data URIs
No (workaround for iOS 6; no known workaround for iOS 6+)
Autoplay allowed
TBC
User interaction event required
TBC
Limitations
TBC
Format tests performed using http://hpr.dogphilosophy.net/test/
Related Topics
Unfortunately App Is Getting Stopped While Checking for Network
Fab Animation with Viewpager/Tabslider
How to Find Memory Leak Class/Activity in Android
How to Get Background Color from Current Theme Programmatically
Set Animated .Gif as Background Android
Disable Icon Colorstatelist in Navigationview
Can't Grab Progress on Http Post File Upload (Android)
How to Run The Same Asynctask More Than Once
Selecting Contact from Autocomplete Textview
Add Drop Shadow Effects to Edittext Field
Margins of a Linearlayout, Programmatically with Dp
Calling Camera from an Activity, Capturing an Image and Uploading to a Server
How to Get The Dimensions of a Drawable in an Imageview
Android: Choose Default Launcher Programmatically
Android: How to Check How Much Memory Is Remaining