Q-Code User Manual
Ver. 7.0 2021/11/30
94
(the 1st VR Group) is recognized successfully but the voice command in VRG2 (the 2nd VR Group)
is not recognized in limited time, VRGC_Timeout will be executed automatically. If the command of
the 2nd VR Group is recognized successfully first, the Timeout condition won’t be established. The
VRGC_Timeout path is established only when the command of the 1st VR Group is recognized
successfully first. The unit of VRGC_Timeout is second (s), the longest length of time can be set to
60 seconds. When Timeout Extend is enabled, and the commands of VRG1 are recognized
successfully, the duration of timeout will be extended automatically if the volume exceed the VAD
threshold.
Ex.
VRGC_Timeout = 5s
; Specify the timeout to 5 seconds.
Ex.
VR_Timeout_Extend = enable
; Enable the automatic extension of timeout function.
The VRGC state can also be used to set the recognized order of VR groups. The actual voice
command can be triggered only after a specific voice command (or trigger word) is recognized. For
example: “Hi Siri, what time is it?”. "Hi Siri" is the voice command of VRG1, after it is recognized,
the voice command of VRG2, “what time is it ?”, can only be accepted. When writing program, user
can use a variable flag to log whether VRG1 has been recognized. Please refer to the following
example.
Ex.
[VR]
VRGC_Timeout = 5s
; Specify the timeout to 5 seconds.
VRGC1 = VRG1 + VRG2
; VRGC1 combines VRG1 and VRG2.
; VRG1 is the group of preceding voice commands
; VRG2 is the group of succeeding voice commands
VRGC2 = VRG1 + VRG3
; VRGC1 combines VRG1 and VRG3.
VRGC1_0: G1_VR1 G1_VR2
; Define the paths of all voice commands in the state of
VRG1.
G2_VR1 G2_VR2
; The paths corresponding to group 2.
[Variable]
VAR8: flag
[Path]
PowerOn: VRGC1_0
; Enable VRGC1_0 state.
G1_VR1: flag = 1
; The preceding command appears and set flag.
G1_VR2: flag = 1
; The preceding command appears and set flag.
G2_VR1: flag = 1 ? G2_VR1_True
; If there is a preceding command, the path will be
executed.
G2_VR2: flag = 1 ? G2_VR2_True
; If there is a preceding command, the path will be
executed.