draft need to finish installing hat, and maybe add a photo
RaspiAudio MIC+ comes with two speakers and a microphone in the form factor needed for a smallish doorbell. I tried several other approaches, this is definitely the easiest.
Parts:
Raspberry Pi Zero running Raspberry Pi OS (aka raspbian)
RaspiAudio MIC+, Amazon, $25.99
Step 1: Install RaspiAudio Hat
Step 2. Download the RaspiAudio software
Open and login into terminal window
$ sudo wget -O - mic.raspiaudio.com | sudo bash
Enter y to reboot
Log back in using ssh
$ sudo wget -O - test.raspiaudio.com | sudo bash
Push the yellow button, and you should hear:
"Front Left" "front Right"
The recorded sequence by the microphone, which is the same as the above with a bit of noise added.
Step 3. Reinstall for Buster
Open this link in a text editor and copy the contents
$ nano raspiaudio_buster_install.sh
Paste the contents of the link. Save and close the file
$ chmod +x raspiaudio_buster_install.sh
$ sudo bash raspiaudio_buster_install.sh
Push the yellow button
Step 4. Set Volume
aslamixer
Use arrow keys to change sound level and esc to exit
Step 5. Play a song or a sound
If mpc is installed and some sounds have been added, then enter
$ mpc play
To stop
$ mpc stop
Step 6. Create the test script file [optional]
Open this link in a text editor and copy the contents
$ nano raspiaudio_test.sh
Paste the contents of the link. Save and close the file. Then make it executable:
$ chmod +x raspiaudio_test.sh
$ sudo bash raspiaudio_test.sh
Push the yellow button
Notes:
Pin numbers used by RaspiAudio MIC+ that cannot be reassigned:
12 = Clock
23 = Button
35 = Word Select
38 = Microphone
40 = Data
Other required pins
2 = 5v
6 = Ground
25 = LED
References: