problem with scipy.io.wavfile (urgent)
![](https://secure.gravatar.com/avatar/fd978aef655f09c4abd8727baab4bc54.jpg?s=120&d=mm&r=g)
Hello all, I am trying to read .wav file using scipy.io.wavfile.read(). It reads some file properly. For some files its giving following error... Warning (from warnings module): File "D:\project\cardiocare-1.0\src\scipy\io\wavfile.py", line 121 warnings.warn("chunk not understood", WavFileWarning)WavFileWarning: chunk not understoodTraceback (most recent call last): File "D:\project\cardiocare-1.0\src\ccare\plot.py", line 37, in plot input_data = read(p.bitfile) File "D:\project\cardiocare-1.0\src\scipy\io\wavfile.py", line 119, in read data = _read_data_chunk(fid, noc, bits) File "D:\project\cardiocare-1.0\src\scipy\io\wavfile.py", line 56, in _read_data_chunk data = data.reshape(-1,noc)ValueError: total size of new array must be unchanged Can any one suggest me any solution? -- -- -- -- -- -- -- -- -- -- Rohan Wadnerkar 09590686578
![](https://secure.gravatar.com/avatar/5f88830d19f9c83e2ddfd913496c5025.jpg?s=120&d=mm&r=g)
On Mon, May 13, 2013 at 1:00 PM, rohan wadnerkar <wadnerkar.rohan@gmail.com>wrote: Hello all,
I am trying to read .wav file using scipy.io.wavfile.read(). It reads some file properly. For some files its giving following error...
Hi, can you open an issue https://github.com/scipy/scipy/issues and include a link to a (preferably small) wav file that's failing for, plus the exact code to reproduce your issue? Without those details it's not possible to figure out what's going wrong here. Thanks, Ralf
participants (2)
-
Ralf Gommers
-
rohan wadnerkar