|
Hello, My previous problem with Winsound has boiled down to a new problem. I have some soundfiles (wav) of which I only need the n first seconds. So, I thought I could crop them using the standard wave-module: This is some of my code: #I open the wav file and I read the first n frames f_org = wave.open(file_name, 'r') frames = f_org.readframes(f_org.getframerate( )*sec) #these frames I write to a new file #the parameters for the new file are the same as for the original file, #only the number of frames is different f_new.setparams(pra) f_new.writeframesraw(frames). This works fine for short files (up to 20 sec). But if I try this with larger files, an later play the new cropped files with windsound, winsound doesn't play the whole new file (although windows media player does so). Does anybody has a piece of code that I can use to crop my files? Because I must be doing something wrong. Thanks, Dieter Graham Fawcett wrote: Dieter Vanderelst wrote:Hello, |
-- http://mail.python.org/mailman/listinfo/python-list
