Closed xiaokebubu closed 6 years ago
Hi! Thanks for the bug report in the resample(). I've fixed it in the repository of thorns.
but then there were some other asserting problems. (like "assert sound.ndim == 1". I checked my data, in which the sound.ndim=2).
I am new to python and I 'm not sure why this may be. Could you help me with it?
So run_zilany2014() is a model of a single ear, i.e., it expects one dimensional signal as input. I guess that you are using a wave file with 2 channels (stereo). If you convert it to mono, it should work.
Problem solved! Thanks very much for your help : ).
I installed cochlea-master on Windows 8 with Anaconda(python2.7 64-bit). It works successfully in jupyter notebook to processing a generated sound as shown in usage website. Then I am trying to run the example by using a sound file but there is something wrong.