Make sure you've got the BrainCraft HAT installed, and I2C support installed as well!
When you run
sudo i2cdetect -y 1
you should see an entry under 1A, indicating the hardware sees the audio card. The number may also appear as UU if you already installed software
At the command line run:
sudo apt-get install -y git
git checkout v5.5
At the end you should see something like this:
and on reboot run
sudo aplay -l
To list all sound cards, you should see it at the bottom
If your card number differs from the above image, take note of your number.
You can use
alsamixer to adjust the volume, dont forget to select the card with F6
A gain of about 60% is plenty loud!
Make sure the Audio On/Off switch is set to ON!
With either headphones plugged into the headphone jack or a speaker attached to the speaker port, run
you will hear white noise coming out of the speakers/headphones!
There are two microphones, and now we can test that they work. This test is best done with headphones, not using the speaker port, because it can cause a painful feedback effect if the speakers are next to the mics!
sudo arecord -f cd -Dhw:1 | aplay -Dhw:1
If your sound card ID is not #1, then replace the number in both of the
-Dhw: parameters with your actual number.
Then either gently rub each microphone, or speak to hear yourself echoed!
Control-C to quit when done
Your audio subsystem is now completely tested!