We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Sampling web streams? (Read 853 times)
Sampling web streams?
Oct 7th, 2008, 5:20am
 
I will preface this with "yes, I did search" and "I am a Processing audio noob" Smiley

I've been toying around the idea of making an audio-based sketch.  I'm a big fan of the 'Groove Salad' channel from http://somafm.com/play/groovesalad

They give you a .pls file, then can play via Winamp etc, pulling their streamed audio off the web.

Anyone have any experience with Processing libs able to intercept and process this type of data?  I'd love to have something responding to their latest streamed audio.

Fishing for ideas, just need a starting point, thanks.
Re: Sampling web streams?
Reply #1 - Oct 13th, 2008, 8:51pm
 
If you save the pls file to your desktop you can open it in a text editor and pull the URL of that actual stream out of it. After having looked at the file, you might also be able to write a simple parser to have the sketch pull out the URL, in case you wanted to listen to channel other than Groove Salad. If you were to use Minim (my audio lib), you could then play the stream by use loadFile and passing in the URL as a string. However, I've tried playing Soma stations in this way and for whatever reason, they don't work. Other web radio stations I've tried have worked, though.
Re: Sampling web streams?
Reply #2 - Oct 28th, 2008, 11:36pm
 
That sounds like a good starting point, thanks!
Re: Sampling web streams?
Reply #3 - Dec 24th, 2008, 6:19am
 
Just wanted to say that I finally got around to trying this, and it worked right out of the box:  Installed Minim, pulled up the "LoadFile" example, and tossed in a stream from the Groove Salad playlist (http://160.79.128.242:8032), and Minim is happily playing it in the background.

thanks!
Page Index Toggle Pages: 1