I have tried playing file using Pygame This is the following code:
import time, sys
from pygame import mixer
# pygame.init()
mixer.init()
sound = mixer.Sound("C:\Users\sharathchandra\Downloads\17.wav")
sound.play()
time.sleep(5)
But it does not throw any error but the song is not played. I tried playing .wav files but with the same result I also tried pyglet But it shows >WAVEFormatException: AVbin is required to decode compressed media I would like to learn how to install AVbin I have run the codes using spyder on Windows and my python version is 2.7. I have also run many examples of pygame but no use. I want to Learn a correct way for Playing the mp3 files using Python and How to install the Desired Library For that Purpose.