makerportal/rpi_i2s
关于
Raspberry Pi I2S Stereo Microphone Analyses in Python
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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

Stereo Wiring

Mono Output
Example Output for 557Hz Test Frequency:

Stereo Output
Example Stereo Output for 1012Hz Test Frequency:

探索相关项目
加载中…