Date: Fri, 18 Sep 1998 16:49:04 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: zach@gaffaneys.com (Zach Heilig) Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: (oops!) converting sound from /dev/audio format to /dev/dsp Message-ID: <199809181449.QAA26620@labinfo.iet.unipi.it> In-Reply-To: <19980918095750.A28513@znh.org> from "Zach Heilig" at Sep 18, 98 09:57:31 am
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809181449.QAA26620>