what is the recording format of Intent .RECORD_SOUND_ACTION?

by zeeshan » Thu, 05 Mar 2009 05:20:49 GMT


Sponsored Links
 Hi,

can anyone tell me what is the default format of android recording.
i have recorded an audio clip but dont know how can i check its
extention?

i am using this activity

Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);

i need mp3/wav format, is it the same or do i need to convert it? how?

please reply me

thanks.

--~--~---------~--~----~------------~-------~--~----~



what is the recording format of Intent .RECORD_SOUND_ACTION?

by Dave Sparks » Thu, 05 Mar 2009 15:59:40 GMT


 The only audio format supported on G1 is AMR format (raw .AMR file).



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


what is the recording format of Intent .RECORD_SOUND_ACTION?

by zeeshan » Thu, 05 Mar 2009 17:20:49 GMT


 thanks for the reply Dave, i was really waiting for it.
is there any way to transcode it in mp3 after record finish.

i need this kind of output:

Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);

protected void onActivityResult(int requestCode, int resultCode,Intent
data) {

if(requestCode == SELECT_AUDIO){
                        if (resultCode == RESULT_CANCELED) {


                            } else {

                                if (data != null) {


                                        Uri RecordedAudio = data.getData();
                                     convertInMp3(Uri);

                                }

                            }
                }

}

?





--~--~---------~--~----~------------~-------~--~----~



what is the recording format of Intent .RECORD_SOUND_ACTION?

by zeeshan » Fri, 13 Mar 2009 17:27:47 GMT


 any solution plz?





--~--~---------~--~----~------------~-------~--~----~



what is the recording format of Intent .RECORD_SOUND_ACTION?

by bw » Mon, 13 Apr 2009 02:40:21 GMT


 Try looking at the source code for RingDroid:
 http://code.google.com/p/ringdroid/source/checkout 

Particularly the CheapAMR and CheapMP3 classes which can read/write
these formats:
 http://code.google.com/p/ringdroid/source/browse/ #svn/trunk/src/com/ringdroid/soundfile








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. [WTA] apakah push instal sudah bisa di offical android market (web)

Apakah maksudnya aplikasi terinstal sendiri setelah masukin account
gmail/register? Karena pernah backup aplikasi ke account gmail yang
teregister di hh.

Kalau iya, di spica cm sudah bisa seperti itu.

Hidayat



-- 
===============
"

2. Berhasil :)

Akhirnya back to unroot, now ready for update official eclair



~ Jus69 ~
|| send using {*filter*} motoblurpowered by xl broadband ||

-- 
===============
"

3. htc desire with (hardware) display bug / copy of /data directory

4. google maps api

5. Garmin audio powered car mount

6. Why does android native contact app have CACHED NAME,CACHED NUMBER TYPE and CACHED NUMBER LABEL ????

7. How to use one application GUI code as jar file from other appliaction?