I'm having problems with recording audio with an Intel Edison board using a USB sound card. I have configured the board to use the USB sound card as the default sound card with asound.conf. I am trying to use the command,
arecord -d 10 -f cd foobar.wav
It is supposed to record one file, foodbar.wav, that is 10 seconds long and encoded in signed 16 bit little endian. It is capable of doing that, but it also creates a large amount of blank files called foobar-xx.wav, where xx increases in number. I have to end arecord manually, or else it will never stop. Attached is a screenshot.
foobar-01.wav plays the 10 second recording, and the other files are empty.
What image are you using in the Edison? What USB sound card are you using? There's a very useful guide to record Audio on the Edison using the arecord command. You can see more information here http://www.intel.com/content/www/us/en/support/boards-and-kits/intel-edison-boards/000018268.html http://www.intel.com/content/www/us/en/support/boards-and-kits/intel-edison-boards/000018268.html .
Let us know if you're able to record audio with this approach.
Thanks for the reply. The image version is 3.5, and I'm using an Uptech SA130 USB 2.0 audio card.
I am now using C to use fork() and output a kill signal in the parent process. This is able to accomplish the tasks I hope to have accomplished.