I created a simple Windows program that contains a media player and a html server. You can place it on your wireless networked-windows computer and then send text to speech, call a wave file, run a program, or shutdown or reboot the computer from your vera using Luup code.
The Luup Code would be:
For Text to Speech:
luup.inet.wget(“http://192.168.1.102:8087/TTS?Hello my computer can talk”)
where “192.168.1.102” would be your computer. The “TTS?” must be in the link, anything after that is spoken by the computer.
For sounds the Luup code is:
luup.inet.wget(“http://192.168.1.102:8087/Doorbell”)
You also have several other sounds to call with this program Sound1-Sound9 and Barking
ex: luup.inet.wget(“http://192.168.1.102:8087/Barking”)
To run a Program on your computer:
luup.inet.wget(“http://192.168.1.102:8087/Program1”)
You can add the desired programs to run when the SoundIt program is running on your windows computer. Once you choose the programs to be run on the SoundIt program, you can save them with the save button for the next time the SoundIt program runs. The data is saved in a text file called “SoundItinfofile.txt” in the program directory. You need to give the SoundIt program “Run as Administor” ability. To do that right click on the progam icon, select properties/capability/ and click the appropriate box.
To reboot the computer:
luup.inet.wget(“http://192.168.1.102:8087/WindowsReboot”)
To shutdown the computer:
luup.inet.wget(“http://192.168.1.102:8087/WindowsShutdown”)
All available links are:
luup.inet.wget(“http://192.168.1.102:8087/TTS?Speak whatever you want here”)
luup.inet.wget(“http://192.168.1.102:8087/Doorbell”)
luup.inet.wget(“http://192.168.1.102:8087/Barking”)
luup.inet.wget(“http://192.168.1.102:8087/Sound1”)
luup.inet.wget(“http://192.168.1.102:8087/Sound2”)
luup.inet.wget(“http://192.168.1.102:8087/Sound3”)
luup.inet.wget(“http://192.168.1.102:8087/Sound4”)
luup.inet.wget(“http://192.168.1.102:8087/Sound5”)
luup.inet.wget(“http://192.168.1.102:8087/Sound6”)
luup.inet.wget(“http://192.168.1.102:8087/Sound7”)
luup.inet.wget(“http://192.168.1.102:8087/Sound8”)
luup.inet.wget(“http://192.168.1.102:8087/Sound9”)
luup.inet.wget(“http://192.168.1.102:8087/Program1”) currently opens notepad
luup.inet.wget(“http://192.168.1.102:8087/Program2”)
luup.inet.wget(“http://192.168.1.102:8087/Program3”)
luup.inet.wget(“http://192.168.1.102:8087/WindowsReboot”)
luup.inet.wget(“http://192.168.1.102:8087/WindowsShutdown”)
I have tested it while streaming netflix and it does not interrupt the movie, it just adds the sound. The program returns a webpage with just the one word like “Doorbell”. I tested it on a windows 7 and windows 8 computer, and it should work on older windows computers as well.
Feel free to download:
http://dataweb.no-ip.com/SoundIt.zip
To install, you have to place all the wav files in your C directory. C:/Doorbell.wav
The soundit.exe program can go anywhere you want. I created a directory called C:/Program Files/SoundIt , and put it there. You may want to create a shortcut on your desktop. You might have to allow it access through your firewall, it is a server on port 8087. You would also need to have it start when you computer starts or manually start the program. You can minimalize it once it is started.
The Sound6-9 wav files are Holloween sounds. You can replace the sound files with whatever you want, just use the same names, and they need to be wav files.
The TTS functions uses the windows Text to speech functions. If you do not have them on your computer, it will not work (most computers should have them though). To adjust those settings go through the windows control panel.
You can change the port to another number after the first time the program is started and the “SoundItInfofile.txt” has been created. On the third line of that file is where you can edit the port number. However, all the links would need to reflect that change.
Make sure your computer does not change its IP number. You might need to attach the IP number from your wireless router. That way the links will not change. You could use this program from other devices besides the Vera, you just need to send your computer the link
Use it as is. If people get it working and like it, I will consider making improvements. Feedback welcome. I am looking at converting it to a service at this time, expect more in a week or two.
Known bugs:
The sound is only output to the “default” playback device. Have not been able to change the output device yet.