Hi there, I noticed that the length in ms is calculated incorrectly in this library, the issue seems to be not subtracting the header bytes from the chunk_size.
So all you need to do is: info.header.chunk_size - 36 before dividing it by num_channels and bits_per_sample and the result will be correct.
Thanks.