User Manual

21
be returned.
- It returns what the PiSmart heard. Only when the words heard are
included in the .sps file, the corresponding result will be returned. For example,
previously only the commands on and off have been recorded, so only when you speak
"turn on" to the PiSmart, on will be returned; say "turn off", off will be returned.
- It verifies whether the command just entered has been heard. If yes, it will
return true
otherwise false. For example, if returns a command on,
will return true, when and will give back
false.
Since the Hear block returns the results of true or false, generally the Logic control blocks will
be used together for better performance of speech control.
Example: Use Speech to Control LED
Previously we've set a dictionary, with which we can make a program to control turning
on/off an LED.
1
Click the Control category and drag the following blocks into the scripting area:
2
Drag the block and drop to combine these blocks
the maximum
brightness of LED light ring is 100
),
drag to the slot after if:
SunFounder