Sunday, July 31, 2016

Stream audio from PC to smartphones?

Leave a Comment

For Christmas 2016, me and my dad want to do a Lightshow for our neighborhood with lights and music.

enter image description here We have the lights set up, but the music is a problem. We don't want to put huge speakers in our garden because that would be very annoying for our densely populated neighborhood.

So, we came up with this concept:

enter image description here

The computer (Windows 7) handles the lights with a sequencer from Light-o-rama.

Now my question is:
How can I stream audio from the PC to the smartphones?
I can figure out the smartphone end myself, but the streaming audio from PC is the thing here.

The solution can be anything! But I can't seem to figure it out! Relevant languages I can do are:

  1. C++
  2. C#
  3. Java
  4. NodeJS
  5. ASP.NET

But it can also be a program that already can do this!

EDIT:
THIS IS A MUST: Lights and music have to stay in sync! The lights dance to the music

Anything helps! Thx in advance!

5 Answers

Answers 1

If you can get everyone to download this app: SoundWire you can stream audio from Windows to any Android phone (assuming your friends are cool)

Check it out looks pretty cool, you can even stream a youtube video and get the audio synced up with any android smartphone

Answers 2

It seems that the dev has already been done, there is an app "Speakerfy" that looks promising. It is available on most of the mobile platforms and seems to do exactly what you need. There is an article on this app at the following link that should give even more info. http://techland.time.com/2013/04/01/speakerfy-a-free-app-for-whole-home-audio-or-silent-discos/ I hope this helps.

Answers 3

Your diagram suggests that each device would be on your local WiFi, which means the guests would need to join your network. That means they would need to know the SSID, there would be no need for a passphrase as you would need to publicly post the SSID and passphrase. Then, unless you have created some DMZ for this musical network, anyone would have access to your network.

But the bigger issue is the act of streaming itself as there is device buffering with such things. It would be near impossible to have the music sync'ed on the devices to any light display.

The best solution would be to broadcast over radio wave on an open channel. Here are some starting points for that: http://www.jpole-antenna.com/2013/10/11/broadcast-high-quality-music-for-your-holiday-lights-display/

https://sourcefmtransmitter.com/shop/category/christmas-lights-to-music/

  • Good Luck!

Answers 4

I have a complete solution stack for you:

  • You should use an OpenWRT router to build a captive portal (all http could be redirected to your url -> your audio streaming pc)
  • A VLC is able to stream your content as you want. If you want you could start the stream from command line.

In my experience this kind of VLC stream is the most effective one, it has almost 0 delay compared to other solutions (I tried gstreamer). If you really would like to stick with Java you are able to use VLCJ which is a nice solution too.

Extra: also with VLC you could set up a camera in front of your house to show that in your stream too!

Answers 5

thinking about any device , i wold try get a Raspberry Pi (U$35) , install a Apache and Tomcat , Create a Web Application to play your musics , get a nice and easy domain or get a free domain and that's it . You will not need any one use your wifi (unless you want). if you get Hacked its just a U$35 Raspberry Pi , make sure to have a backup of you stuffs . Any device with web browser will do it .

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment