TurboPi Expansion with WonderEcho
1. WonderEcho Wiring
The WonderEcho module connects to the I2C interface of the TurboPi expansion board.
2. Transferring the WonderEcho Raspberry Pi Control Program
Transfer the WonderEcho module program to the Raspberry Pi using the Mobax tool.
Program location: 1. Tutorials\4. Multiple Controller Communication Tutorial\4.6 Raspberry Pi Communication\4.6.2 Raspberry Pi Voice Recognition\02 Programs.
3. Connecting to VNC and Running the Voice Control Source Code
Open the local LXTerminal, navigate to the directory containing speech_recognition.py, and run the command python3 speech_recognition.py.
Expected Result:
Before the module can recognize commands, say "Hello Hiwonder" to wake it up. The module can perform recognition only after being activated.
-
When the voice interaction module recognizes the command forward, the module will respond with moving forward while the command line terminal prints
go. -
When the voice interaction module recognizes the command backward, the module will respond with moving backward while the command line terminal prints
back. -
When the voice interaction module recognizes the command turn left, the module will respond with turning left while the command line terminal prints
left. -
When the voice interaction module recognizes the command turn right, the module will respond with turning right while the command line terminal prints
right. -
When the voice interaction module recognizes the command stop or halt, the module will respond with received while the command line terminal prints
stop.
The printed output is shown below: