18 lines
567 B
Plaintext
18 lines
567 B
Plaintext
https://makersportal.com/blog/recording-stereo-audio-on-a-raspberry-pi
|
|
https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-test
|
|
|
|
sudo pip3 install --upgrade adafruit-python-shell
|
|
cd /tmp
|
|
sudo wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2smic.py
|
|
sudo python3 i2smic.py
|
|
|
|
# plug microphone
|
|
sudo reboot
|
|
arecord -l
|
|
arecord -D plughw:1 -c1 -r 48000 -f S32_LE -t wav -V mono -v file.wav
|
|
|
|
# Control record volume
|
|
cp res/.asoundrc ~/.asoundrc
|
|
|
|
# alsa API
|
|
http://www.equalarea.com/paul/alsa-audio.html |