I got an error message “AttributeError: module ‘psychopy.sound’ has no attribute ‘backend_pygame’”, when trying to use sound class through the code below.
from psychopy import sound
import pygame
mySound= sound.backend_pygame.SoundPygame(value='C', secs=5, octave=4,sampleRate=44100, bits=16,name='', autoLog=True, loops=0, stereo=True, hamming=False)
pygame.init()
mySound.play()