I followed this description to learn how to create a magnet stripe card reader, and I got a pretty good result with samples provided here.
However, the samples provided two audio files which were encoded with 1 channel, 16 bits and 44100 sample rate, and worked great with the codes provided inside the folder (dab.py
), but when I tested with an audio I had which was encoded with 1 channel, 8 bits and 10000 sample rate, the codes gave me this error:
"unpack requires a bytes object of length 2"
How should I modify the code to avoid this error?