Open ryanbrooks816 opened 1 year ago
Hi there, you also need to download the file chromaprint-fpcalc-1.5.1-windows-x86_64.zip (1.5 MB) from https://acoustid.org/chromaprint
Then please unzip the binary file (.exe) into the same folder with the compare.py
.
After that, you should see the fpcalc.exe is in the same place with compare.py
and correlation.py
. Hence in line 30 in correlation.py
, the subprocess can be able to call the fpcalc for your audio file
And if you found the same error as me while comparing audio files like:
...
File "H:\audio-compare\correlation.py", line 37, in calculate_fingerprints
fingerprints = list(map(int, fpcalc_out[fingerprint_index:].split(',')))
ValueError: invalid literal for int() with base 10: '3497912292\\r'
You can add the .replace("\\r", "")
to line 30 in correlation.py
. Your line 30 should end up like this:
fpcalc_out = str(subprocess.check_output(['fpcalc', '-raw', '-length', str(sample_time), filename])).strip().replace('\\n', '').replace("'", "").replace("\\r", "")