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

Jetsonnano code

1. Learning Objectives

In this course, we mainly learn to use the Jetson NANO and the voice interaction module to realize the recognition and broadcast.

2. Preparation

The voice interaction module adopts UART communication or USB communication. Here we take USB communication as an example.

Use the type-c cable to connect the Raspberry Pi and the voice module, run the command ls /dev | grep 'ttyUSB' , you can see that the voice module is recognized as USB0

image.png 

Wiring

image.png

3. Code

Please check this code file: speech_moudle.py

Initialize the USB interface

image.png 

Speech broadcast function

image.png 

Speech recognition function

image.png 

Main loop function

image.png 

4. Run code

Enter the command python3 speech_moudle.py in the terminal to run the code.

5. Experimental phenomenon

After the code is run, it starts to initialize the USB port. If the initialization is successful, it will print "Speech Serial Opened! Baudrate=115200", otherwise it will print "Speech Serial Open Failed!".

If there is an error, you need to check the wiring or USB port, and then start to identify the broadcast.

You can say: “Hi, Yahboom”, the speaker will reply: “Hi, i am here”. The terminal will print: hi.

You can say: “ Close light”, the speaker will reply: OK, lights is closed. The terminal will print: OK.

 


RPI code
Arduino code

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

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文