Date: Sun, 15 Jan 2006 17:25:13 +0800 From: Ariff Abdullah <ariff@FreeBSD.org> To: "Michael W. Oliver" <michael@gargantuan.com> Cc: multimedia@FreeBSD.org Subject: Re: cwpcm straight to dsp is way fast Message-ID: <20060115172513.3545d70a.ariff@FreeBSD.org> In-Reply-To: <200601150355.02939.michael@gargantuan.com> References: <200601150355.02939.michael@gargantuan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Sun__15_Jan_2006_17_25_13_+0800_NbmeA.RLZMWNmJmy Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 15 Jan 2006 03:54:56 -0500 "Michael W. Oliver" <michael@gargantuan.com> wrote: > Hey guys, >=20 > I am using cwpcm to generate morse, and when using this: >=20 > echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 | sox -r 8000 -bu -t > raw - sos.wav lowpass 1500 >=20 > I get a wav file that sounds perfect. However, when using this: >=20 > echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 >/dev/dsp > -or- > echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 >sos.raw && cat > sos.raw >/dev/dsp >=20 > I get horrible noise from speakers. I am _guessing_ that it has > something to do with the rate at which dsp is processing that raw > data, but I don't know how to fix it so that I can just play the > code without creating the wav file. >=20 Since you have sox, how about something like this: echo "sos sos sos" | cwpcm -w 20 -F 24 -f 800 | \ play -b -u -r 8000 -t raw - -- Ariff Abdullah FreeBSD --Signature=_Sun__15_Jan_2006_17_25_13_+0800_NbmeA.RLZMWNmJmy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDyhT9lr+deMUwTNoRAsuKAKDS4ZV+LqlkVfYjNAB1JYUoIBEo1gCgsVm2 hnvt2U79HGeVu435c3U8hDU= =eksV -----END PGP SIGNATURE----- --Signature=_Sun__15_Jan_2006_17_25_13_+0800_NbmeA.RLZMWNmJmy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060115172513.3545d70a.ariff>