This is the documentation for the latest (main) development branch of HPM SDK. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

6.39. VAD

6.39.1. Overview

The example shows recording sound with VAD and playing sound with DAO.

6.39.2. Board Setting

Connect speaker to DAO interface on board.

6.39.3. Running the example

When the example runs successfully, make some sound according to the log prompt, the sound will be recorded and played back. The following message is displayed in the terminal:

> vad example
> vad calibration done
> Recording...
> Please make some sound to mic0
> Got something...
> Recorded 204800 bytes data
> Now, playing...