Welcome to ROSMASTER R2 repository
1.2 Voice Control Module Port Binding-New
2. Voice Control Module Port Binding
Note: The voice interaction module is pre-wired at the factory and can be used directly without repeating the steps in this tutorial. The following binding steps are for demonstration purposes only and are for reference only.

Enter the following command in the terminal to check if the device is connected.
lsusb

Then, we modify the /etc/udev/rules.d/usb.rules file and enter it in the terminal.
xxxxxxxxxxsudo gedit /etc/udev/rules.d/usb.rules
Add the following content:
xxxxxxxxxxKERNEL=="ttyUSB*", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7522", MODE:="0777", SYMLINK+="myspeech"
Save and exit. Enter the following command in the terminal to reload the system devices.
xxxxxxxxxxsudo udevadm triggersudo service udev reloadsudo service udev restart
You can then query the port number bound to each device.

2.3. Testing
Finally, the physical connection diagram of the bound ports is shown below.
xxxxxxxxxxpython3 voice_ctrl_test.py
- After successfully connecting to the voice module. "Speech Serial Opened! Baudrate=115200" will be displayed on the terminal.
- After saying "Hi, yahboom" to the module, the voice will respond "I am here."
- After unplugging the voice control module, the program will exit with an error.
If the actual running results are consistent with the above three points, the device binding is successful.