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. Can two different activities that extend the same superclass have the same view ids?

I have a superclass called Game.  I have two subclasses of this class
Game1 and Game2 .

Inside the superclass "Game" there is a Skip button.  This button is
in both Game1 and Game2 as they both use this button.  Inside Game I
have initialized it using

mSkipButton = (Button)findViewById(R.id.skip_button);

Both Game1 and Game2 have a View with an Id of @+id/skip_button

For some reason the Skip button works in Game1 but not Game2.  Can two
different Activities share the same ID?

-- 

2. A trouble about adding SDK component in Eclipse

See 

3. NEEDED: Apps to feature on Sprint Microsite

4. How will dev phone be able to run Eclair?

5. usb-ethernet device(DM9601) not working

6. Hi... member baru

7. Google Streetview for 2.0 emulator, to test invocation through an Intent