Closed slychief closed 7 years ago
Interesting! Thanks for the report. It seems you're right—audiooop.lin2lin
says:
Convert samples between 1-, 2- and 4-byte formats.
meaning that sources can be 8, 16, or 32 bits but not 24. It looks like this has been fixed in Python 3, where this now says:
Convert samples between 1-, 2-, 3- and 4-byte formats.
Is there any chance you can switch to Python 3 for your application?
On our side, we should catch this error before it happens and "give up" on Python 2 for files of the wrong bitdepth.
OK! I added the check. Can you see whether the above commit avoids the crash?
Thanks! Now it's working!
Yay!
Hi,
I am facing the same problem in python 2 and I am running code on server so I can not make change to "audioread/rawread.py" as you mentioned. So how can I give up the ".wav" file with bit rate different than 8, 16, 32 ? I am using urbanSound data.
Thanks Nitesh
Hmm... we’d need a complete bug report with full information about your setup to help. Good luck!
Hi,
I'm currently facing a problem trying to read PCM S24 LE encoded wave files. I get the following error on an UBUNTU host using Anaconda with up-to-date libraries:
I printed the arguments just before the failing statements:
and received these values:
6144, 3, 2
here some infomration about the audio file:
soxi
ffprobe