[PD] sox > fifo > readsf~ not working

Cyrille Henry via Pd-list pd-list at lists.iem.at
Thu Jun 19 15:10:07 CEST 2014



Le 19/06/2014 13:47, Ali Momeni via Pd-list a écrit :
> hello all,
> i'm trying to catch some internet radio streams with sox and pass the audio to pd to process it.
>
> so i first make a fifo buffer:
>
> *mkfifo ~/tempaudio*
> *
> *
> then i run a sox command that catches an mp3 stream, and writes it to a wave stream in the fifo buffer made above:
>
> *sox -v .9 -t mp3 http://icy-e-04.sharp-stream.com:80/lincsfmrutland.mp3 <http://icy-e-04.sharp-stream.com/lincsfmrutland.mp3> -t wav -input-buffer 80000 -r 22050 -c 1 ~/tempaudio*
> *
> *
> these commands run with no errors; i'm executing both as "sudo".
i think you don't have to.

>
> then i open pd and try to run readsf~ with the fifo file above as the input.
> when i send the "open" message to readsf~, i have no error:
>
> * open ~/tempaudio*
> *
> *
> then i send the "start" message message and i get an error:
>
> *dsp:/home/pi/tempaudio: unknown or bad header format*
try providing the header to pd
open ~/tempaudio 0 0 1 2 b

cheers
c

> *
> *
> i've tried some other params in the sox write command but i get the bad header error no matter what i do.
>
> any thoughts?
>
> thanks,
>
> ali
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list