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.15.1. I2S Overview

The example shows recording and playing sound by i2s interface(PDM and DAO peripheral). Board Setting

Connect speaker to DAO interface on board. 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:

> i2s example
> testing pdm to dao
> Recording...
> Please make some sound to mic0
> Playing...
> Recording...
> Please make some sound to mic0
> testing wav playback
> testing sine wave playback