Android audio recording?

Hi all,
I'm new to Corona and an important feature of the project I'm working on is the ability to record audio, modulate it and play it back on android and ios. According this this page: http://developer.anscamobile.com/reference/index/medianewrecording, this isn't available on Android but there's a note on how to use it on android.

Can anyone clarify this for me?

Thanks,
TJ

Hello TJ,

Audio recording does in fact work on Android, with one caveat. You are unable to play back the recorded audio file via our "audio" API. You can only play it back via our "media.playSound" API. This is because Android records audio in 3GP format which our audio API does not support.

If you look at our "Media/SimpleAudioRecorder" sample app, it will show you how to record audio. However, you'll have to modify it to use the media API for playback. Notice in the sample code that the media functions are commented out. You'll need to add them back in and comment out the audio functions to make it work on Android.

I apologize for the confusion in our API documentation. Our plan is to modify audio recording to record to WAV file on Android in the future, which our audio API supports, and then we'll add Android support to our API documentation.

views:1841 update:2011/10/11 8:57:46
corona forums © 2003-2011