Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 09:20:44 +0100
From:      Polytropon <>
To:        Robert Ames <>
Subject:   Re: Recording from sound card
Message-ID:  <>
In-Reply-To: <SNT131-w3888832E65702B763D2125C9EF0@phx.gbl>
References:  <SNT131-w3888832E65702B763D2125C9EF0@phx.gbl>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 10 Feb 2011 22:17:57 -0500, Robert Ames <> wrote:
> I'm having problems trying to record from a sound card under
> 8.1-RELEASE.  The last time I tried this was many releases ago,
> possibly 4.x-RELEASE.  Back then I would do something like "cat
> /dev/dsp > file" but now when I try it I just end up with a 0 byte
> file.  I'm using a different sound card than before so maybe that
> has something to do with it.  Or possibly I just don't know which
> device to use.  Playing sounds using "cat file.wav > /dev/dsp0.0"
> works fine, but I can't get recording to work.  Does anyone have
> any suggestions?  Thanks.

My suggestion would be to install the port "sox", it will
provide a "rec" command that can be used to record WAV or
any other supported audio file format, e. g.

	% rec


	% rec bar.wav

And sox provides other excellent command line tools for
audio manipulation (sox, play, rec); see "man sox" for
details. Note that "play <filename>" is easier than
cat'ing the file to the dsp device directly (which may
require specific access permissions).

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>