From owner-freebsd-multimedia Fri Sep 18 09:39:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17785 for freebsd-multimedia-outgoing; Fri, 18 Sep 1998 09:39:31 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA17776 for ; Fri, 18 Sep 1998 09:39:25 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id QAA26620; Fri, 18 Sep 1998 16:49:04 +0200 From: Luigi Rizzo Message-Id: <199809181449.QAA26620@labinfo.iet.unipi.it> Subject: Re: (oops!) converting sound from /dev/audio format to /dev/dsp To: zach@gaffaneys.com (Zach Heilig) Date: Fri, 18 Sep 1998 16:49:04 +0200 (MET DST) Cc: freebsd-multimedia@FreeBSD.ORG In-Reply-To: <19980918095750.A28513@znh.org> from "Zach Heilig" at Sep 18, 98 09:57:31 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Is there a formula to convert a sound captured from /dev/audio to something > that will work well when piped into /dev/dsp? I did a quick 'gnuplot' of > the values of both, and don't see any obvious correlations. the "sox" program will do the conversion you need. /dev/audio produces a compressed (u-law) format whereas /dev/dsp is linear 8-bit as you say. u-law has a better dynamic range, though. > I made the mistake of capturing 15 hours of non-repeatable audio from > /dev/audio before I realized that /dev/dsp captured sounds in an easier to > process form (the goal is to be able to pipe the audio to gained by mistake > from /dev/audio and be able to pipe that to /dev/dsp and get recognizable > audio). (of course you can pipe it to /dev/audio and get recognizable audio as well...) luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message