Record Audio In Android

i am facing a problem with recording audio and playback it again on android
i used the sample code for recording and it did not work with android device.

i use :
2012.971 (2012.11.15)

there are an article on the blog about game called “spelling test” which record voice and playback it again i download it on my device and it work very well

but the sample code did not worked

Can you try on the the latest public build to see if that works?

It work with new version with media api …
:slight_smile:

But the problem with new version is the syntax different from the previoes … Please do not change the syntax in each version

I finally found out why Simple Audio Recorder doesn’t work. build.settings are for iPhone. I found the answer on this forum.

settings =
{
android =
{
usesPermissions =
{
“android.permission.RECORD_AUDIO”,
},
},
}

@jadkins4
Try to download the latest version of corona and see the sample code of recording … It work with me …
The problem was in “.pcm” --> “.3gp”

And you have to use media api to playback the sound

Good luck …

I downloaded the latest version of corona and it’s also working good here.thanks!

cmoles

Can you try on the the latest public build to see if that works?

It work with new version with media api …
:slight_smile:

But the problem with new version is the syntax different from the previoes … Please do not change the syntax in each version

I finally found out why Simple Audio Recorder doesn’t work. build.settings are for iPhone. I found the answer on this forum.

settings =
{
android =
{
usesPermissions =
{
“android.permission.RECORD_AUDIO”,
},
},
}

@jadkins4
Try to download the latest version of corona and see the sample code of recording … It work with me …
The problem was in “.pcm” --> “.3gp”

And you have to use media api to playback the sound

Good luck …

I downloaded the latest version of corona and it’s also working good here.thanks!

cmoles