2021-07-28 22:26:40 +02:00
|
|
|
https://makersportal.com/blog/recording-stereo-audio-on-a-raspberry-pi
|
|
|
|
https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-test
|
|
|
|
|
2021-07-31 18:13:15 +02:00
|
|
|
sudo apt install python3-pip
|
2021-07-28 22:26:40 +02:00
|
|
|
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
|
2021-07-31 18:13:15 +02:00
|
|
|
http://www.equalarea.com/paul/alsa-audio.html
|
|
|
|
|
|
|
|
# for project
|
|
|
|
sudo apt install libasound2-dev wiringpi
|
|
|
|
|
|
|
|
# for cava
|
|
|
|
sudo apt install libfftw3-dev libasound2-dev libtool automake
|
|
|
|
./autogen.sh
|
|
|
|
./configure
|
|
|
|
make
|
2021-08-01 10:44:05 +02:00
|
|
|
sudo make install
|
|
|
|
|
|
|
|
# Access point
|
|
|
|
grep "Access point conf" $(find /etc -type f)
|