python-wavefile icon indicating copy to clipboard operation
python-wavefile copied to clipboard

WaveWriter metadata missing duration etc.

Open RoyJames opened this issue 5 years ago • 0 comments

I just started using WaveWriter to write multi-channel data, and the output wav files can be read by Matlab and Audacity, as well as recognized by sox. But when loading it into Adobe Audition, the length of the audio is zero. I suspect that relevant metadata is missing because when I use soxi to inspect some Audition compatible files I see:

Input File : 'output.wav' Channels : 1 Sample Rate : 16000 Precision : 16-bit Duration : 01:27:30.24 = 84003840 samples ~ 393768 CDDA sectors File Size : 168M Bit Rate : 256k Sample Encoding: 16-bit Signed Integer PCM

But for those file written by WaveWriter the output is like:

Input File : 'test1.wav' Channels : 2 Sample Rate : 16000 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM

So Duration, File Size, and Bit Rate are missing, which I guess will be used by some other audio software to load the file. While this is not a bug, I'm suggesting this in case people expect to have more compatibility from this package.

RoyJames avatar May 10 '19 21:05 RoyJames