From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 08:20:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E3E9106566B for ; Fri, 11 Feb 2011 08:20:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA6E8FC18 for ; Fri, 11 Feb 2011 08:20:47 +0000 (UTC) Received: from r55.edvax.de (port-92-195-143-131.dynamic.qsc.de [92.195.143.131]) by mx01.qsc.de (Postfix) with ESMTP id A04533C942; Fri, 11 Feb 2011 09:20:45 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p1B8KiAA001462; Fri, 11 Feb 2011 09:20:45 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 11 Feb 2011 09:20:44 +0100 From: Polytropon To: Robert Ames Message-Id: <20110211092044.7ff0efde.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Recording from sound card X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 08:20:47 -0000 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 foo.au or % 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 " is easier than cat'ing the file to the dsp device directly (which may require specific access permissions). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...