playing sounds

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
nsisman
Member
Posts: 3
Joined: Wed Jun 13, 2007 9:47 pm
Location: Newmarket ON Canada

playing sounds

Post by nsisman »

I need a little help please.

Trying to get a task set up that will play a sound thru the pc speaker.

I have devices turning on OK and I have text to speech working OK but haven't figured out how to get a task to play a sound.

Thanks

Neil
roussell
Advanced Member
Posts: 268
Joined: Wed Dec 15, 2004 9:07 am
Location: Pelham, AL

Post by roussell »

There are several ways to do it, probably the quickest is to create a Software Device of type "Execute Program Device" Point to your favorite sound player app in the "Path and Program Name" field and point to the sound you want to play in the "Arguments" field. See the attached screen shot for an example.

To make it play, simply create an action in the appropriate task to change the property value "Execute Program" to 'Yes'

In the example I used Microsoft's mplayer2 which is basically their old media player but you could use which ever you like as long as it supports supplying the file to play as a command line argument.

Terry
Attachments
PlaySound.JPG
PlaySound.JPG (27.3 KiB) Viewed 968 times
Post Reply