Community
cancel
Showing results for 
Search instead for 
Did you mean: 
RLiu24
Beginner
949 Views

Edison ALSA multiple files with arecord command

Hello,

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.

Thank you!

2 Replies
idata
Community Manager
57 Views

Hi

 

 

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.

 

 

-Sergio

 

RLiu24
Beginner
57 Views

Hi Sergio,

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.

Richard

Reply