Hello,
I am trying get VA ready to execute a command when I say "mark". I know of the option "wait for spoken response", but the issue that I have with that option is that it doesn't give any feedback on the time remaining. So I created an alternative that it works as follows:
Say, 'Understood.'
Set Boolean [mark] to False
Set integer [time] value to 0
Pause 0.95 seconds
Start Loop While : [mark] Equals False
Begin Integer Compare : [time] Is Less Than 29
Set integer [time] to [time] plus 1
Else
Say, 'No command acknowledged.'
Exit Command
End Condition
Begin Integer Compare : [time] Equals 20
Say, '10 seconds left'
End Condition
Begin Integer Compare : [time] Equals 25
Say, '5'
End Condition
Begin Integer Compare : [time] Equals 26
Say, '4'
End Condition
Begin Integer Compare : [time] Equals 27
Say, '3'
End Condition
Begin Integer Compare : [time] Equals 28
Say, '2'
End Condition
Begin Integer Compare : [time] Equals 29
Say, '1'
End Condition
Pause 1 second
End Loop
Press C key and hold for 0.1 seconds and release
Say, 'Command accepted.'
And I created the command "mark" with sets the Boolean of the same name to true.
Although this works, it can take 1 second for the command to be executed due to the pause of one second at the end of the loop. Does anyone knows if there is a more elegant approach to this?
Regards