Skip to content
Projects

makerportal/rpi_i2s has 50 GitHub stars and 12 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 12:34 UTC. Last push 2026-09-03.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

Raspberry Pi I2S Stereo Microphone Analyses in Python

Creative & Media

README.md

Original

I2S Microphone Recording on Raspberry Pi with Python

Python codes that read, save, and analyze audio input from I2S MEMS microphones on a Raspberry Pi

Interactive companion: Audio & Acoustics Toolbox — explore spectra, filters, and acoustic calculations in the browser.

Raspberry Pi boards are capable of recording stereo audio using an interface called the inter-IC sound (I2S or I2S) bus. The I2S standard uses three wires to record data, keep track of timing (clock), and determine whether an input/output is in the left channel or right channel. First, the Raspberry Pi (RPi) needs to be prepped for I2S communication by creating/enabling an audio port in the RPi OS system. This audio port will then be used to communicate with MEMS microphones and consequently record stereo audio (one left channel, one right channel). Python iS then used to record the 2-channel audio via the pyaudio Python audio library. Finally, the audio data will be visualized and analyzed in Python with simple digital signal processing methods that include Fast Fourier Transforms (FFTs), noise subtraction, and frequency spectrum peak detection.

The full tutorial can be found at: https://makersportal.com/blog/recording-stereo-audio-on-a-raspberry-pi

Mono Wiring

Mono I2S INMP441 Wiring

Stereo Wiring

Stereo I2S INMP441 Wiring

Mono Output

Example Output for 557Hz Test Frequency:

I2S Mono Test

Stereo Output

Example Stereo Output for 1012Hz Test Frequency:

I2S Stereo Test