Olaf icon indicating copy to clipboard operation
Olaf copied to clipboard

Success in adding track, but web build doesn't recognise track

Open calebphntm opened this issue 2 years ago • 1 comments

Hi there! I am working on a proof of concept, and I have managed to correctly install Olaf and fingerprint a track. However, when I run the web build I can't get a successful response. I am running make web after adding the track and then running the server - are there any steps I am missing?

Additional: After testing olaf monitor test.mp3 it threw the following error:

query index,total queries, query name, match name, match id, match count (#), q to ref time delta (s), ref start (s), ref stop (s), query time (s) Traceback (most recent call last): 8: from /usr/local/bin/olaf:372:in `<main>' 7: from /usr/local/bin/olaf:372:in `each_with_index' 6: from /usr/local/bin/olaf:372:in `each' 5: from /usr/local/bin/olaf:373:in `block in <main>' 4: from /usr/local/bin/olaf:80:in `monitor' 3: from /usr/local/bin/olaf:180:in `with_converted_audio_part' 2: from /usr/local/bin/olaf:84:in `block in monitor' 1: from /usr/local/bin/olaf:84:in `each' /usr/local/bin/olaf:91:in `block (2 levels) in monitor': undefined local variable or method `filename' for main:Object (NameError)

Could this be related to the issue I am having in failing to recognise tracks or is this another issue?

calebphntm avatar Sep 20 '21 12:09 calebphntm

Some further investigation shows that the specific point it fails is in calling the olaf_fp_matcher_print_results function in olaf_fp_matcher.c. My theory is that it is correctly matching, but then failing in printing details about the match.

calebphntm avatar Sep 22 '21 11:09 calebphntm

This has been fixed now. See the basic wasm example.

JorenSix avatar Mar 17 '23 07:03 JorenSix