Testing Microphone with Android App on OMAP

865 views
Skip to first unread message

Fasil

unread,
Aug 10, 2010, 1:06:34 AM8/10/10
to android-porting
Hi,

I m using OMAP3EVM with Android Donut, I need to check the Mic
functionality in Android. I have verified my Mic working in Linux and
booting the OMAP using Ramdisk and verified using the utility namely
arecord and aplay.

I got an apk namely DroidRecord a record and play application,
whenever I click the Record button of the app, the application closes
with the message "com.twofuse.droidrecord" has stopped and the app
closes.

Is there any other utility or app is there to check the Mic
functionality. The android FS by default has got the SoundRecorder.apk
in system/app but its not coming as an icon in menu.
Is there any tweak to be done for this . Looking for your suggestions
and help.

Thanks
Fasil

Srikant

unread,
Aug 11, 2010, 1:27:51 AM8/11/10
to android-porting
You can use the following 2 ways to test Mic Recording in Android

1. From the “Messaging” icon on the Main menu,
--->Select “New message”
--->Press “Menu button”
--->Select “Record Audio”
--->Record application UI opens
--->Press “Record button”
--->Press “Stop” button to stop Recording
--->Press “Play button” to playback the recorded file

2. From adb shell,
Execute "alsa_aplay -r ..." (Recording option 'r')

--Srikant

Fasil

unread,
Aug 11, 2010, 3:05:27 AM8/11/10
to android-porting
Thanks Srikant,

1. On trying the first option , I m getting an error message that "
process com.android.soundrecorder" has stopped unexpectedly.

2. For the second option I m not able to find any record option with
alsa_aplay.

Do I need to modify any changes in init.rc , I m using Donut Android
flavour . In recent time I getting a new error in Music player with
the message " sorry the player doesnt support this audio file" and
its not able to play the mp3 which I used to run successfully earlier.

Any pointers on this one.

Thanks
Fasil

Srikant

unread,
Aug 13, 2010, 4:17:38 AM8/13/10
to android-porting
> 2. For the second option I m not able to find any record option with
> alsa_aplay.
The option is 'C' and not 'r', (C for Capture)
Try with this for recording, something like this:
#alsa_aplay -C -t wav -d 10 rec1.wav

--
Srikant
> > > Fasil- Hide quoted text -
>
> - Show quoted text -

Fasil

unread,
Aug 13, 2010, 5:24:03 AM8/13/10
to android-porting
In Command line mode I m able to capture voice... But through app I m
not able to do so.
I have tried with the following apps

1. SoundRecorder the default one of Android
2. Voice Recorder apk
3. Droid Record

In all the three cases the applications throws a message as

D/ALSAModule( 1128): open called for devices 00000000 in mode 0...
E/ALSALib ( 1128): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
E/ALSAModule( 1128): Failed to Initialize any ALSA PLAYBACK device:
Unknown error: -16
W/AudioFlinger( 1128): record start failed, status -19

Any other apps is there to test voice ?

Thanks
Fasil

Krishna Mohan

unread,
Aug 17, 2010, 4:33:36 AM8/17/10
to android-porting
hi,
try this....
as per the logcat it seems the capture device is not defined properly
hence in line
"D/ALSAModule( 1128): open called for devices 00000000 in mode 0... "
00000000 doesnt seem to have any meaning. so instead of this try to
open hw:0,0 or hw:0,1 depending on ur card settings.
I dont remember exactly where it opens the device.

try ur luck,
Reply all
Reply to author
Forward
0 new messages