Demo

December 18, 2021 ยท View on GitHub

Watch the micro speech video

Setup

Using a single INMP441 Microphone:

WireESP32 PinINMP441 Pin
RED3v3VDD
WHITEGNDGND
YELLOWD18 (GPIO 18)WS
GREEND19 (GPIO 19)SCK
PURPLED23 (GPIO 23)SD
BLUEGNDL/R

The blue wire pulls L/R low and activates the left channel.

ESP32 Pinout

INMP441 Pinout

I2S Configuration Block


# Green Wire
bck_pin = Pin(19)

# Yellow Wire
ws_pin = Pin(18)

# Purple Wire
sdin_pin = Pin(23)

audio_in = I2S(0,
               sck=bck_pin,
               ws=ws_pin,
               sd=sdin_pin,
               mode=I2S.RX,
               bits=16,
               format=I2S.MONO,
               rate=16000,
               ibuf=16000
               )