noise_suppression example [中文]
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This example takes the audio data collected by the single microphone through noise suppression to obtain 16KHz, 16bit, mono audio data, and immediately outputs the noise-reduced data. The user can select whether the noise suppression is turned on by pressing the "Mode" button on the LyraT_Mini development board or ESP32-Korvo V1.1 board.
-
This example can run on ESP32-LyraT-Mini board and an external speaker connected to the board. For more information about ESP32-LyraT-Mini, please see ESP32-LyraT-Mini Getting Started Guide.
-
This example can run on ESP32-Korvo board as well, however, it is suggested to use mic-array speech enhancement (MASE) API for Korvo for a better speech enhancement result; please check MASE example for more information.
-
headphone
-
Go to
idf.py menuconfig
. -
Set the serial port number under
Serial Flasher Options
.
Build the project and flash it to the board, then run the monitor tool to view the output via serial port:
idf.py flash monitor
(To exit the serial monitor, type Ctrl-]
.)
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
There is the console output for this example:
NS STATE: 1
Indicates that the initial state is the state in which noise suppression is turned on, you can hear the noise after the noise reduction process by headphone.
Press the "Mode" button and the following output will be displayed:
NS STATE: 0
Indicates that the current state is the state of noise suppression off. Pressing the "Mode" button again will enter the mode of noise suppression on.