Is there a module that I could use for playing back an audio file in python? More specifically, I would like to have something where I can set the start and end positions of the playback. I need to play, say, for 5 seconds, then rewind the file by 5 second, and then play it again. After that I would want to move on to the next 5-second segment. I have looked at pygame and winsound, but it seems to me that they support only complete rewinds. Any comments on this? (I am developing for windows.)
Cheers,
v923z
Have you looked at using pymedia specially its player module.