LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Trouble recording audio with a microphone (https://www.linuxquestions.org/questions/slackware-14/trouble-recording-audio-with-a-microphone-4175506862/)

kikinovak 06-03-2014 03:33 AM

Trouble recording audio with a microphone
 
Hi,

I'd like to make some audio (voice) recordings on my Slackware box. I have a microphone plugged into my sound card. I can play test sounds in /usr/share/sounds/alsa fine, I can hear them in my speakers. And when I speak into the microphone, I can hear my voice coming out of the speakers. But I can't seem to record anything. I tried this:

Code:

# arecord -d 10 test-mic.wav
# aplay test-mic.wav

But nothing is recorded.

Any suggestions?

Mark Pettit 06-03-2014 04:16 AM

Perhaps try using audacity. The GUI might make things simpler. Then, if after that your microphone is not detected properly, or not supported, try to borrow a USB microphone. I've recently bought a tape-cassette->USB device. It appeared in the audacity device drop down list and just-plain-worked-first-time !

kikinovak 06-03-2014 04:32 AM

Quote:

Originally Posted by Mark Pettit (Post 5181415)
Perhaps try using audacity. The GUI might make things simpler. Then, if after that your microphone is not detected properly, or not supported, try to borrow a USB microphone. I've recently bought a tape-cassette->USB device. It appeared in the audacity device drop down list and just-plain-worked-first-time !

OK, I've fiddled around quite a bit with alsamixer, followed your advice and tried Audacity. First results are very encouraging. I can record my voice OK, and even with my crappy headset, the sound is actually quite good. I experimented a lot with the various settings and managed to reduce distortion to a minimum.

Now I wonder how I can get recordmydesktop to record sound. According to Audacity, I'm using the "Rear Mic". The manpage 'man recordmydesktop' specifies a --device SOUND_DEVICE switch (default hw:0,0). Hmmmm. Now what?

Edit: I finally managed to have sound with recordmydesktop, but it's very low, almost inaudible, compared to what I got with Audacity.

Edit2: after quite some more fiddling with alsamixer, everything works perfectly now.

I can now record screencasts complete with audio using recordmydesktop.

Thanks very much! I'll mark this thread as SOLVED.

kikinovak 06-03-2014 05:23 AM

PS: I've written a little HOWTO on the subject.

http://kikinovak.wordpress.com/2014/...cordmydesktop/

irgunII 06-04-2014 08:08 AM

Quote:

Originally Posted by kikinovak (Post 5181436)
PS: I've written a little HOWTO on the subject.

http://kikinovak.wordpress.com/2014/...cordmydesktop/

Thanks for this kikinovak!


All times are GMT -5. The time now is 05:37 PM.