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. opencore test apps are broken

can you try "make BUILD_PV_TEST_APPS := 1" or adding in ./buildspec.mk??




> website: 

2. java.lang.NullPointerException when trying to edit strings.xml

Hello all,
Firstly my appoogies in advance, I know this is a very newbie
question, but I have looked and looked, and cant seem to get to the
bottom of this.

I am getting the error:
"java.lang.NullPointerException"

whenever I try to change anything at all within "strings.xml"  when
using eclipse, does anyone know of a reason behind this? I havnt
changed anything else in the project at all, I'm just going straight
into strings to try editting a few things.


Many thanks
Dan

-- 

3. How to access a AIDL service from different packages?

4. Context.getExternalFilesDir() folder is removed on app upgrade? Where to store data?

5. Generate key events on foreground application

6. Error in accessing java file genetated from .aidl file

7. Custom widget height always 0?