I can only write .wav files to the current directory
fname = 'bassswoon.wav' wav = wave.open(fname,'w') wav.writeframes(struct.pack('h', bassswoon)) wav.close()
Adding a path to fname, i.e. fname = '/path/to/bassswoon.wav' does not work - the file is written neither in the intended directory ('/path/to/') nor in the working directory.
I don't see anything of use in the documentation - is it simply not possible with the wave object? Surely, there must be a way to hack it...