Tech Support > Operating Systems > Linux / Variants > tools for recording sound to disk?
tools for recording sound to disk?
Posted by Ray on February 29th, 2004


hi

i'm trying to find some recommedations for tools for recording sound
to disk for later playback.

in particular, i listen to a lot of web casts, via realplayer and
would like to record the sound for later playback.

any suggestions would be appreciated -- i'm using 2.4 with alsa.
thanks
ray

Posted by florian schmidt on February 29th, 2004


On Sun, 29 Feb 2004 02:53:58 -0800, Ray wrote:

first thing to check would be, if your soundcard supports feeding back the
mix into the capture source. For example, with my terratec dmx xfire 1024
[cd46xx] i can select "Mix" in alsamixer as capture source..

Then i can just use an application of my choice [like arecord [from
alsa-utils], for example] to record the captured sound.

Ok, but there is a pitfall in this case, too:

Many OSS apps open the /dev/dsp device for both reading and writing.
This blocks the digital audio capture device on the soundcard [if this is
the case depends on your hardware], thus making arecord not work.. A way
around this is by controlling the kernel level OSS emu like described on
this page:

http://alsa-project.org/~iwai/OSS-Emulation.html [look at the pcm mode
section]

If your sound hw doesn't allow independent opening of pcm capture and
playback at all, you can try the aoss script and a asym pcm device:

http://alsa.opensrc.org/index.php?page=asym
http://alsa.opensrc.org/index.php?page=aoss

If your soundcard does not support selecting Mix as capture source, then
it gets a little more complicated. I think there's a diskwriter plugin
available [see Plugin: File in:
http://www.alsa-project.org/alsa-doc...l#pcm_plugins].

Point your alsa apps to this device and you shouild be set. For oss apps
you need to use the aoss script for this..

It is also possible [via .asoundrc magic] to write to both pcm's [File and
your soundcard]..

Flo

--
signature




Similar Posts