I am using the TMRPCM library module found at GitHub - TMRh20/TMRpcm: Arduino library for asynchronous playback of PCM/WAV files direct from SD card. Arduino Uno,Nano,Mega etc supported to play a series of wav files.
I have checked the sd card and it is working. I am using a UNO and an ethernet shield to read the sd card. Pin 10 is set high to disable ethernet chip and pin 9 is open and ready to use for PCM.
I have looked at the wav files and they are 8 bit mono 16Khz. I even put some of the wave files from the Github site on the card.
No matter what I do, the sound just buzzes.
I have tried the 2n2222 transistor and speaker. I tried a low pass RC Filter. Still just the same buzz sound no matter what file I play.
Any help would be appreciated. Thanks.