But the recording was horrible with a lot of static, so I dug up the man pages again and issued the following command:Īrecord -d 10 -c 2 -f S16_LE -r 44100 -t wav -D copy foobar.wav (The ‘numid’ might be different in your system, use ‘amixer controls’ to find the exact name)Īfter all that waiting, it felt amazing to hear something recorded when I played back foober.wav. I set the capture source to 4 which meant ‘MIX’:Īmixer cset numid=27,iface=MIXER,name='Capture Source" 4 The ouput of this command listed a control called ‘Capture Source’ which was currently set to 3 which meant it was recording from the external microphone. This command displays all controls applicable to the sound card. Then I saw that the ‘arecord’ man pages referred to the command ‘amixer’.Īfter a bit of digging I issued the following command: Now when I tried the previous command again, it worked!īut unfortunately, when I tried to play the wav file back all I heard was static. This command records a 10 second audio clip of CD quality from the device ‘copy’īut, the command failed saying that it could not find ‘copy’.Īccording to the manual the ‘copy’ device has to be specified in the user’s .asoundrc file.Īs I did not find the file in my home folder, I created it and named it ‘.asoundrc’ in my home folder and copied the following lines into it: I checked it out and it was installed in my system.Īn example command to record soundcard ouput was specified in the man pages and I tried it:Īrecord -d 10 -f cd -t wav -D copy foobar.wav When I google’d for other alternatives, I came across a command line utility called There is an application called KRec which is bundled with KDE, but this app can only record an aRTs ouput, not ALSA’s. Play a song or movie through one of the players available like: xine, xmms etc. Record audio, playing on my computer speakers. Through this brief article I want to share with you, my experiences as I tried to Linux: Recording soundcard output using arecord
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |