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, and then enter the folder

image-20230530170404845

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

image-20230530170259754

2、Bind Port

Query USB device ID,

image-20230530171255752

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

Copy the following content into this file,

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

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,,

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,

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

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