How to record sound from 'pc'?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
ink3
Posts: 80
Joined: 9. Apr 2011, 14:16

How to record sound from 'pc'?

Post by ink3 »

I need record some sound from pc (for exemple www - myspace).
I find that I do this with

Code: Select all

arecord -f cd record-file
arecord save file, but no sound.

I think that problem is my sound card or I need more soft.

Code: Select all

# lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)

Code: Select all

# lsmod | grep snd
snd_seq_dummy           1119  0 
snd_seq_oss            25900  0 
snd_seq_midi_event      4696  1 snd_seq_oss
snd_seq                42680  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4505  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            34554  0 
snd_mixer_oss          14726  3 snd_pcm_oss
snd_hda_codec_realtek   222970  1 
snd_hda_intel          18443  5 
snd_hda_codec          61720  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4772  1 snd_hda_codec
snd_pcm                59843  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              15717  2 snd_seq,snd_pcm
snd                    43891  17 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               4641  3 snd
snd_page_alloc          5925  2 snd_hda_intel,snd_pcm

Code: Select all

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC260 Analog [ALC260 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
please help :)
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: How to record sound from 'pc'?

Post by thenktor »

You probably need to activate a capture source. Open alsamixer, change to capture view (F4) and see if something is activated.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
ink3
Posts: 80
Joined: 9. Apr 2011, 14:16

Re: How to record sound from 'pc'?

Post by ink3 »

No, I try all options mic, front mic, cd, line

Meantime I find other solution. My card don't use stereo mix probably .
Then I use virtual alsa driver (alsa loopback driver)
Load module:

Code: Select all

modprobe snd-aloop
Create default file which use by alsa

Code: Select all

mcedit ~/.asoundrc

pcm.!default {
type hw
card 1
device 0
}
Run some music from myspace (we will not listen)
And I record:

Code: Select all

arecord -D hw:1,1 -f cd some_file
Or conversion on the fly:

Code: Select all

arecord -D hw:1,1 -f cd | lame -h - some_file.mp3
I managed to check whether in moc.

If you want to return to the initial settings,
change name .asoundrc or delete.

I think that this solution suitable to salix wiki ;)
Post Reply