<div dir="ltr">hello all,<div>i'm trying to catch some internet radio streams with sox and pass the audio to pd to process it.</div><div><br></div><div>so i first make a fifo buffer:</div><div><br></div><div><b style="font-family:arial,sans-serif;font-size:13.333333969116211px">mkfifo ~/tempaudio</b><br>
</div><div><b style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></b></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">then i run a sox command that catches an mp3 stream, and writes it to a wave stream in the fifo buffer made above:</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><strong style="font-size:13px;border:0px;padding:0px;margin:0px;font-family:Helvetica,sans-serif;line-height:24px;vertical-align:baseline;color:rgb(69,69,69)">sox -v .9 -t mp3 <a href="http://icy-e-04.sharp-stream.com/lincsfmrutland.mp3" target="_blank">http://icy-e-04.sharp-stream.com:80/lincsfmrutland.mp3</a> -t wav -input-buffer 80000 -r 22050 -c 1 ~/tempaudio</strong><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>
</span></div><div><strong style="font-size:13px;border:0px;padding:0px;margin:0px;font-family:Helvetica,sans-serif;line-height:24px;vertical-align:baseline;color:rgb(69,69,69)"><br></strong></div><div><span style="font-size:13px;border:0px;padding:0px;margin:0px;font-family:Helvetica,sans-serif;line-height:24px;vertical-align:baseline;color:rgb(69,69,69)">these commands run with no errors; i'm executing both as "sudo".</span></div>
<div><span style="font-size:13px;border:0px;padding:0px;margin:0px;font-family:Helvetica,sans-serif;line-height:24px;vertical-align:baseline;color:rgb(69,69,69)"><br></span></div><div><span style="font-size:13px;border:0px;padding:0px;margin:0px;font-family:Helvetica,sans-serif;line-height:24px;vertical-align:baseline;color:rgb(69,69,69)">then i open pd and try to run readsf~ with the fifo file above as the input.</span></div>
<div>when i send the "open" message to readsf~, i have no error:</div><div><br></div><div><b> open ~/tempaudio</b></div><div><b><br></b></div><div>then i send the "start" message message and i get an error:</div>
<div><br></div><div><b>dsp:/home/pi/tempaudio: unknown or bad header format</b></div><div><b><br></b></div><div>i've tried some other params in the sox write command but i get the bad header error no matter what i do.</div>
<div><br></div><div>any thoughts?</div><div><br></div><div>thanks,</div><div><br></div><div>ali</div></div>