Sample Trigger Macro with TTS Acknowledge
MACRO Talk How Are You {How Are You}
Voice Recognition phrase is in blue
{Conversational Macro to ask HAL for a general status report}
Comment is in green
Begin
In 2 Seconds TTS: "Thank you for asking";
Speak acknowledgement phrase
Set FLAG HowAreYou to TRUE;
Second Action to set a trigger Flag
End;
Note: BEGIN and END are purely cosmetic and not present in the HAL Automation Setup Screen.
Keyword Talk designates this macro as belonging to the collection of macros known as Conversational, designed to simulate polite conversation while imparting general status and condition information.
First word MACRO differentiates between MACROS, SCENES, MODES, and RULES
Delayed TTS phrase causes TTS action to be scheduled as a future event. This results in quicker execution of the macro allowing the status report rules to begin execution before the speech begins.
|