USB Mic arecord: set_params:1081: Sample format non available

2,179 views
Skip to first unread message

Dan Todd

unread,
May 26, 2015, 9:00:10 PM5/26/15
to jasper-sup...@googlegroups.com
Got a Raspberry pi 2 running the latest raspbian image. Trying to get my own jasper project rolling but have been fighting with the USB mic.
When I run "arecord temp.wav" I get the following error:

pi@raspberrypi ~ $ arecord temp.wav
Recording WAVE 'temp.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:1081: Sample format non available
Available formats:
- S16_LE
Using a kinobo mini akiro usb mic

any help with this error would be greatly appreciated.



Nikki Yakubovsky

unread,
May 26, 2015, 9:30:30 PM5/26/15
to jasper-sup...@googlegroups.com
try running arecord -f cd temp.wav 
-f cd means 16 bit 44.1 KHz 

Dan Todd

unread,
May 27, 2015, 7:46:25 AM5/27/15
to jasper-sup...@googlegroups.com
thanks for the reply, Appreciate the help. I ran the command as you showed but now have :

Recording WAVE 'temp.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
arecord: set_params:1087: Channels count non available

This mic thing is killing me!!!!


John Ginsberg

unread,
May 27, 2015, 8:02:46 AM5/27/15
to jasper-sup...@googlegroups.com
Try this (found it on a forum, haven't tested it):

arecord -f S16_LE -c 2 -r 192000 -d 20 test.wav

Nikki Yakubovsky

unread,
May 27, 2015, 10:36:15 AM5/27/15
to jasper-sup...@googlegroups.com
in your home directory open this file using any text editor .asoundrc. i.e. do for example $ sudo nano ~/.asoundrc try playing with the data there (if there is something there already). I think what helped me was to comment out everything that there was and insert this 
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
the number you have to find out by yourself. 
If there is nothing in there, just try pasting this in. Hope this helps. 

Steve Gale

unread,
Jun 3, 2015, 2:31:28 PM6/3/15
to jasper-sup...@googlegroups.com
I have had similar problems.
I had downloaded the image for a B from the jasper installation page, then ran sudo update, upgrade etc and had problems with the microphone and jasper itself not working.
arecord temp.wav would not work, but sudo arecord temp.wav did.
I also had to edit mic.py to change the sample rate.

I gave up and started again with a clean image.

This time everything works, have not had to edit mic.py.

I am not sure what is causing the problem with the latest update and do not intend to!

Steve
Reply all
Reply to author
Forward
0 new messages