Does anyone have any information they can share with me on reading an audio
stream with ruby? I am teaching myself ruby and they say to find a project
and build it, so here i am. I listen to a lot of online radio and i thought
i would try and listen to an audio stream from ruby, if its possible.
Thanks!
~Nick
Since I listen a lot of online radio stations I've made small GUI
utility for myself. It downloads list of radio stations from Shoutcast
and Xiph and on Linux uses any player (I use audacious2 on Ubuntu).
You can see it on http://github.com/bosko/rstreamtuner\. You'll need
wxRuby in order to use it.
Regards,
Boško Ivanišević
···
On Jul 5, 8:11 pm, Nick Hird <nrh...@gmail.com> wrote:
[Note: parts of this message were removed to make it a legal post.]
Does anyone have any information they can share with me on reading an audio
stream with ruby? I am teaching myself ruby and they say to find a project
and build it, so here i am. I listen to a lot of online radio and i thought
i would try and listen to an audio stream from ruby, if its possible.
Thanks!
~Nick
Nick Hird wrote:
Does anyone have any information they can share with me on reading an
audio
stream with ruby?
If you want to 'catch' the stream on its way in, I might try something
like raw HTTP request:
http://en.wikibooks.org/wiki/Ruby_Programming/Reference/Objects/Socket#Example
or use EventMachine to do the same, if you plan on having multiple
connections open.
GL.
-r
···
--
Posted via http://www.ruby-forum.com/\.
Nick Hird wrote:
Does anyone have any information they can share with me on reading an
audio stream with ruby? I am teaching myself ruby and they say to find a
project and build it, so here i am. I listen to a lot of online radio and i
thought i would try and listen to an audio stream from ruby, if its possible.
Thanks!
~Nick
Hi Nick, a very simplistic maybe => invoke a system command to run VLC,
passing it the url of the radio stream; like:
system "vlc http://radio1.internode.on.net:8000/117 vlc://quit ;"
rob
···
--
Posted via http://www.ruby-forum.com/\.