SpeechDroid for HomeSeer by Tonlof
Update 0.0.2
You never have to train the learning of voice, Google has allowed thousands of people read texts with different dialects.
You need Tasker application installed on your phone.
http://tasker.dinglisch.net/ or
Tasker on Android Market
Demo Mode
You can try the script from webpage without having Tasker or Android.
http://homeseer-ip/speechdroid.asp?demo=1
Speech example for units.
The only important thing is to use command, device, and the room in your sentence. You can mix it in any order and fill in with any word in the sentence.
Let's say we have a device name "ceiling lamp" in room "living room" in HS setup.
You can say the command in many different way.
Say: Turn on the living room ceiling lamp
Say: Can you please turn on the ceiling lamp in living room
Say: Ceiling lamp in living room needs to turn on
Say: Power on the ceiling lamp in living room please
Say: Toggle the ceiling lamp in living room
Say: Please shut down the ceiling lamp in living room
Say: Hi Homeseer, please turn on bla hmm bla the ceiling lamp bla bla bla in living room bla bla
SpeechDroid analyze this: Hi Homeseer, please "TURN ON" bla hmm bla the "CEILING LAMP" bla bla bla in "LIVING ROOM" bla bla
If you stumble on the words and make mistakes, just keep talking the correct word in the same sentence.
Say: Event Name Trigger events name
URL
Put your own URL Name in webcamname and the url in arr_webcam_url
Say: front door webcam (Show the webcam)
Say: weather map (Show the weathermap)
Hidden devices in HS is automatic removed from recognized devices in this script.
Callback instructions to Tasker
SpeechDroid writes 2 lines in html respond for Tasker.
Line 1: Command (SPEAK|SOUND|IMAGE|URL|RETRY)
Line 2: (Text of speak|door open.wav|http://www.domain.com/image.png|http://www.domain.com/webpage.html)
Installation:
Rename speechdroid.asp.txt to speechdroid.asp and place it under HomeSeer html folder.
Import following files to Tasker
Save SpeechDroid.prf.xml Profile to sdcard/Tasker/profiles
Save SpeechDroid.tsk.xml Task to sdcard/Tasker/task
Open Tasker on your android, long-press on the Profiles tab open Options, select Import and the the file SpeechDroid
Do the same for Task tab
You may need to change the ip and portnumer to your HomeSeer server in Task SpeechDroid
You can change to your name Task Data: text=%VOICE&name=Tony
If you have more than one Android with SpeechDroid, HomeSeer can answer with personal name directly to the phone.
Icon on homescreen
Make a new widget by long-pressing on a free space on your homescreen, choose Widget, then Task.
Select SpeechDroid and then the icon that you whant to use. Press the green save icon.
speechdroid.ini
Use speechdroid.ini to replace name of units, rooms, commands or misinterpretation
Replace a longname device, if you don't what to rename them in homeseer.
If your hs room is Master Bedroom and hs device is named: BedroomTV - Samsung 55 3D LED
Normal you have to say: Turn on the Bedroom TV Samsung 55 3D LED in Master Bedroom
But if you put this line in speechdroid.ini you could say: Turn on the Master Bedroom TV
TV=Bedroom TV Samsung 55 3D LED
or use it for misinterpretation
Aimee's ready lamp=Amy's reading lamp
There is no max lines but it may slow down the script if you have many rows.
-------------------------
SpeechDroid xml files does not work on newer version of Tasker.
SpeechDroid for HS3 is now released in Tasker Plugin
http://board.homeseer.com/showthread.php?t=158888
Update 0.0.2
You never have to train the learning of voice, Google has allowed thousands of people read texts with different dialects.
You need Tasker application installed on your phone.
http://tasker.dinglisch.net/ or
Tasker on Android Market
Demo Mode
You can try the script from webpage without having Tasker or Android.
http://homeseer-ip/speechdroid.asp?demo=1
Speech example for units.
The only important thing is to use command, device, and the room in your sentence. You can mix it in any order and fill in with any word in the sentence.
Let's say we have a device name "ceiling lamp" in room "living room" in HS setup.
You can say the command in many different way.
Say: Turn on the living room ceiling lamp
Say: Can you please turn on the ceiling lamp in living room
Say: Ceiling lamp in living room needs to turn on
Say: Power on the ceiling lamp in living room please
Say: Toggle the ceiling lamp in living room
Say: Please shut down the ceiling lamp in living room
Say: Hi Homeseer, please turn on bla hmm bla the ceiling lamp bla bla bla in living room bla bla
SpeechDroid analyze this: Hi Homeseer, please "TURN ON" bla hmm bla the "CEILING LAMP" bla bla bla in "LIVING ROOM" bla bla
If you stumble on the words and make mistakes, just keep talking the correct word in the same sentence.
Say: Event Name Trigger events name
URL
Put your own URL Name in webcamname and the url in arr_webcam_url
Say: front door webcam (Show the webcam)
Say: weather map (Show the weathermap)
Hidden devices in HS is automatic removed from recognized devices in this script.
Callback instructions to Tasker
SpeechDroid writes 2 lines in html respond for Tasker.
Line 1: Command (SPEAK|SOUND|IMAGE|URL|RETRY)
Line 2: (Text of speak|door open.wav|http://www.domain.com/image.png|http://www.domain.com/webpage.html)
Installation:
Rename speechdroid.asp.txt to speechdroid.asp and place it under HomeSeer html folder.
Import following files to Tasker
Save SpeechDroid.prf.xml Profile to sdcard/Tasker/profiles
Save SpeechDroid.tsk.xml Task to sdcard/Tasker/task
Open Tasker on your android, long-press on the Profiles tab open Options, select Import and the the file SpeechDroid
Do the same for Task tab
You may need to change the ip and portnumer to your HomeSeer server in Task SpeechDroid
You can change to your name Task Data: text=%VOICE&name=Tony
If you have more than one Android with SpeechDroid, HomeSeer can answer with personal name directly to the phone.
Icon on homescreen
Make a new widget by long-pressing on a free space on your homescreen, choose Widget, then Task.
Select SpeechDroid and then the icon that you whant to use. Press the green save icon.
speechdroid.ini
Use speechdroid.ini to replace name of units, rooms, commands or misinterpretation
Replace a longname device, if you don't what to rename them in homeseer.
If your hs room is Master Bedroom and hs device is named: BedroomTV - Samsung 55 3D LED
Normal you have to say: Turn on the Bedroom TV Samsung 55 3D LED in Master Bedroom
But if you put this line in speechdroid.ini you could say: Turn on the Master Bedroom TV
TV=Bedroom TV Samsung 55 3D LED
or use it for misinterpretation
Aimee's ready lamp=Amy's reading lamp
There is no max lines but it may slow down the script if you have many rows.
-------------------------
SpeechDroid xml files does not work on newer version of Tasker.
SpeechDroid for HS3 is now released in Tasker Plugin
http://board.homeseer.com/showthread.php?t=158888
Comment