Does audio recording work same for Android and iOS?

Hi,

I need to record audio to a file. I know iOS supports mp3 where Android will only record in 3gp which is okay. But other than specifying the file format is everything else the same for recording?

Thanks!

Warren
[import]uid: 184193 topic_id: 32242 reply_id: 332242[/import]

The other thing you have to watch out for is that our [lua]audio[/lua] API does not support playing *.3gp files, but the [lua]media[/lua] API on Android does support it.

On iOS, it is suggested that you play your recording via the [lua]audio[/lua] API instead. [import]uid: 32256 topic_id: 32242 reply_id: 128360[/import]

Actually I do not need to play the recorded files on the devices. I only want to record. So my question is if the call to do the recording is the same for both.

Thanks!
[import]uid: 184193 topic_id: 32242 reply_id: 128403[/import]

Yes, the calls to record audio are exactly the same between iOS and Android.

Have a look at sample project “Media/SimpleAudioRecorder” that is included with the Corona SDK for an example on how to use this API. Oh, and that sample project’s one short coming is audio playback which I mentioned up above. You would have to switch to the media API to prove that the audio recording worked.

Good luck! [import]uid: 32256 topic_id: 32242 reply_id: 128443[/import]

The other thing you have to watch out for is that our [lua]audio[/lua] API does not support playing *.3gp files, but the [lua]media[/lua] API on Android does support it.

On iOS, it is suggested that you play your recording via the [lua]audio[/lua] API instead. [import]uid: 32256 topic_id: 32242 reply_id: 128360[/import]

Actually I do not need to play the recorded files on the devices. I only want to record. So my question is if the call to do the recording is the same for both.

Thanks!
[import]uid: 184193 topic_id: 32242 reply_id: 128403[/import]

Yes, the calls to record audio are exactly the same between iOS and Android.

Have a look at sample project “Media/SimpleAudioRecorder” that is included with the Corona SDK for an example on how to use this API. Oh, and that sample project’s one short coming is audio playback which I mentioned up above. You would have to switch to the media API to prove that the audio recording worked.

Good luck! [import]uid: 32256 topic_id: 32242 reply_id: 128443[/import]