This function gets the last voice command recognized by a speaker client. This is a read-only property. This value is the parsed (processed) voice recognition string, which means that some parts of the command may be replaced by values or codes that HomeSeer uses to interpret what was spoken. See LastVoiceCommandRaw to get the unparsed (raw) phrase.
None.
Return value: voice
command
Type: string
Description: This returns the last voice command that HomeSeer recognized.
This is
useful for obtaining the actual voice command when the given voice command
contains many optional words.
If a voice command was set to:
tv channel (0|1|2|3|4|5|6|7|8|9)
and the user spoke "tv channel 4", this function would return the string "tv channel 4"
Create an event name tv channel. Set the voice command to:
tv channel (0|1|2|3|4|5|6|7|8|9)
Set the actions of the event to run the following script. When you speak a phrase like "tv channel 2", a message box will pop up giving you the actual command the system recognized.
sub main()
dim v
v=hs.LastVoiceCommand
msgbox "I heard "&v
end sub
clsLastVR
GetLastVRInfo
GetLastVRCollection
LastCommandSelected
LastVoiceCommandPhone
LastVoiceCommandHost
LastVoiceCommandInstance
LastVoiceCommandRaw