Recently assembled a Picar-X kit with a Robot Hat v.4. The speaker doesn’t make any sound and has a wire that’s wrapped around the board. How do I make the speaker work?
Have you tried running the program from sudo?
It is recommended to execute the command sudo amixer -c 1 sset PCM 100% to see if the volume can be increased.
Alternatively, you can run the alsamixer command, press F6 to switch audio card devices, use the ↑ and ↓ arrow keys to adjust the volume, and press ESC to exit. Then check if the speaker volume can be increased.
I also suggest reinstalling i2samp.sh:
cd ~/picar-x
sudo bash i2samp.sh
Then run the audio sample to see the results.