|
|
I've used two methods with good success:
- Use hs.Launch to launch Windows Sound Recorder. Just pass it the path of the WAV file along with an option that says to play automatically and another option to tell it to close when it's done. The command line looks like this:
C:\windows\sndrec32.exe /play /close c:\sound\ring.wav
The only disadvantage to this is that it opens up the Sound Recorder program (which takes a second or two), and if you're using the PC when this launches, your keystrokes could interfere.
- Create an event in HomeSeer for a specific WAV file. On the "App/Sound/Email" tab, put the path to your WAV file where it says ".WAV File Path". Then in a script, you can use hs.TriggerEvent to trigger this event.
|
|