Playing a WAV file Popping and Humming.

Hello some odd reason there is a Humming and popping when playing a Wav file from Sd card module. I followed this guy video Here on how to make the Audio play though the Sd card on the arduino and it works but i get Popping and humming from the speakers and not sure why. can someone please help me out the sketch is below.

#include <TMRpcm.h>

#include <SPI.h>
#include <SD.h>

char mychar;
const int CS_PIN = 10;
TMRpcm tmrpcm;

void setup() {
  tmrpcm.speakerPin = 9;
  // put your setup code here, to run once:
  Serial.println("Initializing Card");
  pinMode(CS_PIN, OUTPUT);
  if(!SD.begin(CS_PIN)) {
    Serial.println("Card Failure");
  Serial.println("Card Ready");"e.wav");

void loop() {

but when the music stop the humming is still there but the popping is gone.

I found out the problem I'm having is that the dac is not enough But I'm not sure if that is correct maybe this is a programming problem not a audio problem? maybe need a better Dac?

Hello is there a way to move this topic to programming please?


Thank you.