Common audio format for Android, iOS, Windows Phone - android

I need to produce an audio file on an Android device that can be played on any other Android, iOS, or Windows Phone device. I need to do this without any third party apps. I am using .NET on the server, so I could convert there but I'd like to avoid that. I can see that you can record AAC in 2.3.3, but I need to use 2.2. Any ideas?

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

Mp3, and wav are both supported on absolutly every system, including ios, android, and windows 7 mobile. mp3 is generally used for music, but for just about anything else, it is generally standard to use wav.

Related

what audio format is natively supported in all platforms, both for recording and playing back?

We're creating a range of apps that record user's voice for a wide range of applications. Users can register their ideas, or describe a scene, or give educational tips and notes to someone else.
We need to choose a file format that satisfies these conditions:
Better to be playable natively in Android, iOS and web
Better to reduce the cost of encoding-decoding
Better to reduce the cost of development (we're not sound experts)
Storage is not a big deal, so compression is not important, but network traffic IS a big deal, so for that reason better to be as compact as possible
The most obvious choice coming to mind is MP3, but to our surprise, MP3 encoding is not supported in Android Studio out of the box.
We searched and tried to find best practices for this, and again, to our surprise there is not much written in spite of huge usage of sounds and voices everywhere.
For example, in this post it's written that MP3 is the most used file format, and then ACC. But we're totally stranger with AAC.
So, what audio format is natively supported in all medias, both for recording and playing back?
The file format can be .AAC, is compressed, compatible with iOS, Web and Android (3.1 or higher) and is developed by Nokia and Sony (This last one is extra information).
You can see at wikipedia all its compatible OS: AAC Wikipedia
It is compatible with WebOS.

Image and Video support for Multiplatform (Android, iOS, Windows)

I know that there are list of some supported format for Image, Video and Audio that an Android device play or show.
Now, I am creating an application for Android, iOS, Windows and Blackberry. There are list of supported format that each platform can either play(for Audio and Video) or show (for images). They will sync this media on Cloud. My need is that I should be able to show each and every media that what ever there extension is on my all platforms. So for that I need following information.
Is there any single API available (open source or paid what ever it is) which can convert these format in supportable format on my device? I googled and get to know of some APIs but I am not sure how effective they are so if any one of you have tried and know which one is best, please refer me that.
Also, I don't want to replicate each and every video and produce its supported version on my cloud. As I have purchased that space and don't want to waste this space just for replication of same thing. So I want that whenever a un-supported format came, It should be translated to supported version for that platform on the fly.
Please provide your suggestion.
If you create an Adobe AIR app (by using either Adobe Flash Builder or Adobe Flash), then it will run on Android, iOS and BlackBerry 10 (and desktop - Windows and Mac) and support same audio and video formats.
Here a nice tutorial for all platforms.

Playing wav files in the Android browser

Using the html 5 audio tag it appears it is possible to play back an mp3 through the android browser. Is it possible to do it using a wav file? If not through the audio tag is there another way to do it?
The HTML5 <audio> tag supports WAV files. Depending on your version of Android, though, it might not work in the native browser. For example, no format worked in Android 2.2. I tried it on my own phone, the Galaxy Nexus with Jelly Bean using the excellent test on Are We Playing Yet?, and found that it was not supported.
The other way to do it is to transcode your WAV file to a different format and use HTML5 audio. The Flash based WavPlayer might work too, but please remember that Flash was discontinued for Android and is not guaranteed to be installed on all devices.
android version 2.2's native browser supports ".wav" file. but android 4.0's native browser does not support ".wav" file.

Playing HLS without Android OS support for .ts files

I have developed an HLS player for Android 2.3. It works. However, I am finding that certain Android devices lack support for .ts files. On these phones my player does not work. So, my question is this: Is there a way that I can include support for these files within my app (perhaps a codec or a library of some sort)? After exhaustive searching, I'm really not sure where to go.
Thanks.
Try to port FFMPEG to Android with the NDK, I think that's the best solution for your playing issues. I'm now in that way, I could report you my advances .
You can take a look at vitamio. I think that your player will work if vitamio is installed on the the devices that don't already support the ts files.

Which audio format can be recorded and played back by iPhone and Android?

I am designing an app that can record short audio files on iPhone and Android that can be played back on both platforms, as well as hopefully any other smartphone.
Right now I'm using *.caf with the iLBC codec, as I know the iPhone does not encode mp3.
Is there a file format/codec that I should use in this case?
It used to be that there were no common audio encoding formats for Android and iPhone.
iPhone: iPhone audio encoding supported formats
Android: Android supported media formats
But Android 2.3.3 adds support for AMR-WB and AAC: Android Audio Encoder AAC
See Media Framework at Android 2.3.3 API changes
So I believe AAC is your format choice if you want interop between Android and iPhone devices and can handle the Android 2.3.3 limitation.
Otherwise, just pick from the list for widest coverage (AMR-NB on Android) or plan on converting the recorded audio to a suitable format.
A quick check shows that AMR is patented and I assume AAC would have some patent coverage as well. PCM is decodable on iPhone and Android and most cellphones at the expense of larger filesize.
All smartphones can play WAV files (even Android as of 2.2). These are known as "Linear PCM" in iOS and "PCM/WAVE" in Android.
Try modifying the file type in your ios version file to be .wav and you should be able to listen to this audio file on an Android phone, as well as a Windows operating system.
You'll find that mp3 has hardware decoding in all recent iOS devices and most Android mobile phones as well (but not cheap tablets, budget phones, etc).
As explained above by typo.pl, the generally compatible format is AMR or WAVE(PCM), but in practice, we prefer a progressive solution:
produce AAC on iOS and Android 2.3.3+, but fallback to produce AMR (WB)
on Android pre-2.3.3. Both formats are playable on all platforms.
I guess it's a fairly easy solution for better compatibility and audio quality.

Categories

Resources