Speaker making static sound after pi boots

Hey everyone this is my first Raspberry Pi project. While this may not be useful to helping me with my problem, I am using a Pi 2 Zero W, and reading voltages from a potentiometer, fed into a MCP3008 ADC, goes into a python script and returns a wav file to play depending on the voltage, which is then put through a PCM5102A DAC, into a TPA3118 amplifier, and lastly output to a speaker. This is all powered by a 12V talentcell battery, which contains a 12V output for the amplifier and a 5V output for the pi.

Upon booting the pi itself though, the speaker immediately plays static and high pitched noises but im unsure what exactly the issue is. My suspicion is my wire connection to my speaker. Currently I have just taken the ends of wires and wrapped them around the positive and negative brackets. The reason I did this instead of soldering is because I originally planned to return these speakers, but will solder if it happens to be the problem. I have attached a picture showing the connection. As far as I can tell everything else is fine, before attaching the speaker I tested the ADC and the DAC, was also properly detected, but then again I am a complete beginner. Any help would help appreciated.
 

Attachments

  • 1747449884440.png
    1747449884440.png
    1.9 MB · Views: 8