No announcement yet.

Speak Something

  • Filter
  • Time
  • Show
Clear All
new posts

    Speak Something

    This Action is used to send text to HomeSeer speaker clients. These can also be played bu other speech proxies provided by other plug-ins.

    In its simplest form the speak action will speak specific text defined in the Action

    Click image for larger version  Name:	Speak1.PNG Views:	1 Size:	28.9 KB ID:	1269966

    This Event will speak "Hello from HomeSeer" to the first speaker client HomeSeer finds. If more than one Speaker Client is running, you may need to specify the clients to which to speak. It also may be intercepted by other speech proxies for other plug-ins, dependent on their configuration. Follow plug-in instructions as to how their proxy works. With more than 1 proxy, improper configuration can cause speech Actions to be repeated. You can pick the speech clients from a list or manually configure them with the "Edit Speaker Client List" button. Here the HomeSeer default client is selected.

    Click image for larger version  Name:	Speak2.png Views:	1 Size:	13.1 KB ID:	1269967

    This way you can select among the clients you have installed. If you have running HSTouch devices, each of them will show up as a client. Som speech proxies may require you manually add the client using a special format. Follow the instructions from the plug-in provider.

    In addition to text, you can use HomeSeer replacement variables. Here HomeSeer will speak the current time. $$time will be replaced by a the system time in spoken format as shown in the log entry

    Dec-27 4:27:57 PM TTS Speak: ():The time is 4:27 PM

    Click image for larger version  Name:	Speak3.PNG Views:	1 Size:	30.8 KB ID:	1269968

    You can also use some SAPI tags in the TTS string. Here a delay and specific voice have been selected. This will speak in a system male voice and will have a 250ms delay to make speech more natural.

    <voice required="name = Microsoft David Desktop"> Front Door Unlocked <silence msec='250'/> please wait while I attempt to lock it

    The Status or String of HS devices can be included, using replacement variables. Here is a time and temperature announcement. The Device with a Reference ID of 8850 is a greeting device with a string value set throughout the day. Right now it is Good Evening. Then the current time replacement variable. The outside temperature device Reference ID is 3695 and the humidity device is 3699. The resultant speech is in a female voice "Good Evening {pause} it is 4:40PM {pause} the temperature is 24 degrees {pause} and 36 percent humidity"

    <voice required="name = Microsoft Zira Desktop">$$DTR:8850: <silence msec='500'/> it is $$time <silence msec='250'/> the temperature is $$DVR:3695:degrees<silence msec='250'/> and $$DVR:3699: percent humidity

    Not all SAPI tags will work, but a pause and voice selection will. You can also put all of your speech text in a file and have the event speak the file. Here a text file is selected

    Click image for larger version  Name:	Speak4.PNG Views:	1 Size:	31.4 KB ID:	1269970

    In the file the text to be spoken is:

    "Happy An eh versary <silence msec='1000'/> Happy An eh versary!"

    This can be useful for especially long or complex text.

    to be continued...
    HS4 Pro, Windows 10 pro