Sound not working for your project? Try the solutions below
Check your Raspberry Pi can play sounds. Play a sample sound by typing in a Terminal:
If you are using HDMI and no sound is being played, you may need to tell the Raspberry Pi to output sound through the audio connector. Run the following command in a Terminal.
amixer -c 0 cset numid=3 1
Make sure your speakers or headphones are plugged into the 3.5 audio jack and are turned on