|
From: D. S. <new...@gm...> - 2008-01-14 03:13:16
|
Now that i have sox 14, streaming from a .pls url using sox->play
works great. This will be nice for talk shows too; I use compand
0.1,0.3 -60,-60,-30,-15,-20,-12,-4,-8,-2,-7 to give audio a consistent
high volume. (I hate it when one talk show speaker is too loud,
another too soft.) Now I can more easily use it for streaming,
I did have a little "play" -related snag in Cygwin where I use -t
ossdsp /dev/dsp to play to the soundcard, but, I also have libao
installed. In sox.c, I needed to make set_device() not attempt using
ao for the play device (I have libao, so not sure why that was a
problem).
Before I got:
$ ./play monkey.wav
./play ao: Could not find a default driver
./play soxio: Can't open output file `default':
So, as a work-around for cygwin (which has ossdsp*) I changed
set_device to not use ao in Cygwin.(sox.c:373)
371 static void set_device(file_t f, sox_bool recording UNUSED)
372 {
373 #if defined(HAVE_LIBAO) && !defined(__CYGWIN__)
374 if (!recording) {
So now it uses -t ossdsp /dev/dsp for the v14.0.1 sox play, and works fine.
(* Cygwin OSSDSP hint: I had to copy over /usr/include/sys/soundcard.h
and /usr/include/machine/soundcard.h headers from a linux system to
the Cygwin system before I could get -t ossdsp /dev/dsp to work in
sox.)
On Dec 24, 2007 1:34 AM, robs <aq...@ya...> wrote:
> --- "D. S." <new...@gm...> wrote:
>
> > Here's one way I've listened to shoutcast (icecast)
> > mp3 streams using
> > nothing but wget and sox (mine is v12.18).
>
> Hey, great minds think alike ;) With SoX v14, this is
> largely built-in, so you can do this:
>
> $ play -t mp3 http://somewhere/somestream.pls
>
> It doesn't do the "tail" though, so you'll need 2
> Ctrl-C's to quit.
>
> /Rob
|