This function gets the last voice command recognized by HomeSeer Phone. 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.
HomeSeer Phone is required to do voice recognition over the telephone.
None.
Return value: voice
command
Type: string
Description: This returns the last voice command that HomeSeer recognized
via the telephone. 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.LastVoiceCommandPhone
hs.WriteLog "LVCP", "I heard " & v & "
from the phone."
end sub
clsLastVR
GetLastVRInfo
GetLastVRCollection
LastCommandSelected
LastVoiceCommand
LastVoiceCommandPhone
LastVoiceCommandHost
LastVoiceCommandInstance
LastVoiceCommandRaw