yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Voice interaction module📖
1.Introduction
  • Introduction
2.Write the firmware
  • Write the firmware
3.PC serial port control
  • Control via PC serial port communication
4.MCU control course
  • RPI code
  • Jetsonnano code
  • Arduino code
5. ROS1 Using Tutorialsnew
  • 1、Environmental construction
  • 2、Voice control of car movement
  • 3、Voice controlled automatic driving for car line inspection
  • 4、Voice controlled car color tracking
  • 5、Voice controlled multi-point navigation
6. ROS2 Using Tutorialsnew
  • 1、Environmental constructionnew
  • 2、Voice control of car movement
  • 3、Voice controlled automatic driving for car line inspection
  • 4、Voice controlled car color tracking
  • 5、Voice controlled multi-point navigation
Download
  • MCU Course Code
  • ROS2 Code
  • ROS1 Code
  • Communication_protocol
  • Software File
Download ZIP

Welcome to Voice interaction module repository

1、Environmental construction

1、Environmental construction

1、Install Speech_ Lib library

First, set the name to 'py'_ Install_ Copy the V0.0.1 folder to the root directory of your own system, andthen enter the folder,

cd py_install
sudo python3 setup.py install

image-20230530170404845

Use the following command to check if the installation was successful,

xxxxxxxxxx
pip list

image-20230530170259754

2、Bind Port

Query USB device ID,

xxxxxxxxxx
lsusb

image-20230530171255752

Create a new my_ Speech.rules file, terminal input,

xxxxxxxxxx
sudo gedit /etc/udev/rules.d/my_speech.rules

Copy the following content into this file,

xxxxxxxxxx
KERNEL=="ttyUSB*",ATTRS{idVendor}=="1a86",ATTRS{idProduct}=="7523",MODE:="0777",SYMLINK+="myspeech"

After saving, exit and enter the following command to refresh the port rule file,

xxxxxxxxxx
sudo udevadm trigger
sudo service udev reload
sudo service udev restart

image-20230530171505025

The appearance of the above image indicates successful binding.

The above binding method is only applicable to a unique USB device ID. Sometimes, there may be the same device ID. For example, if there are two 1a86:7523 devices, then the ATTRS {devpath} parameter and ATTRS {devpath} parameter need to be added to the query method. For example, if I confirm that ttyUSB1 is a voice board, then input,

xxxxxxxxxx
udevadm info --attribute-walk --name=/dev/ttyUSB1 |grep devpath

The terminal will print the following content, based on the actual situation,

image-20230530172125045

The red box represents the value of ATTRS {devpath}, so my_ The speech.rules file needs to be modified to the following content,

xxxxxxxxxx
KERNEL=="ttyUSB*",ATTRS{devpath}=="1.4.3",ATTRS{idVendor}=="1a86",ATTRS{idProduct}=="7523",MODE:="0777",SYMLINK+="myspeech"

After saving, exit and enter the following command to refresh the port rule file,

xxxxxxxxxx
sudo udevadm trigger
sudo service udev reload
sudo service udev restart

Note that after binding, it cannot be inserted into the driver port, otherwise it will not be recognized.

Voice controlled multi-point navigation
Voice control of car movement

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文