for x, i in zip(list(range(0, 25)), os.listdir(filepath)):
    if i.endswith('.wav'):
        mySoundFile = mixer.Sound(filepath + i)
print('Speed Variable = ', x, ' and file = ', i)
channel = mySoundFile.play(0)
while channel.get_busy():
    pygame.time.wait(100)
print('........')
Changing a sound effect Pygame