I wanted to write a python script to play a sound (recorded using windows recorder)!
I read pygame can do the job and installed pygame! But I don't know how to write a code that plays a sound from a specific path! I have to play an audio file located at C:\Users\Asdf\Documents\Audio.wav
I tried a script from here http://pythonprogramming.net/adding-sounds-music-pygame/
import pygame
crash_sound = pygame.mixer.Sound("crash.wav")
But then I get an error message:
Traceback (most recent call last): File "", line 1, in crash_sound = pygame.mixer.Sound("crash.wav") AttributeError: 'module' object has no attribute 'mixer'
So how do I write the script to play that Audio.wav file using pygame?
I am using Python 3.4 64 bit version!