notexactlyawe / abracadabra Goto Github PK
View Code? Open in Web Editor NEWSound Recognition
License: MIT License
Sound Recognition
License: MIT License
While running song_recognizer initialise, I got an error : Invalid settings file [settings]
Also, hash.db is not create automatically.
The installation instructions could be a lot cleaner if it was just pip install abracadabra
.
While running song_recognizer initialise, I get an error : Invalid settings file [settings]
Can you explain how this is not a bug?
abracadabra/abracadabra/fingerprint.py
Line 67 in ac8e080
It seems this function will always return zero for time delta.
Shouldn't it be return hash((p1[0], p2[0], p2[1]-p1[1]))
?
When
import pyaudio
is run, it gives the error
Please build and install the PortAudio Python bindings first.
intermittently.
Traceback (most recent call last):
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/abracadabra/storage.py", line 15, in get_cursor
conn = sqlite3.connect(settings.DB_PATH, timeout=30)
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/simple_settings/core.py", line 94, in __getattr__
self.setup()
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/simple_settings/core.py", line 68, in setup
self._load_settings_pipeline()
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/simple_settings/core.py", line 75, in _load_settings_pipeline
strategy = self._get_strategy_by_file(settings_file)
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/simple_settings/core.py", line 91, in _get_strategy_by_file
raise RuntimeError('Invalid settings file [{}]'.format(settings_file))
RuntimeError: Invalid settings file [settings]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/bin/song_recogniser", line 33, in <module>
sys.exit(load_entry_point('abracadabra==0.1', 'console_scripts', 'song_recogniser')())
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/abracadabra/scripts/song_recogniser.py", line 37, in initialise
storage.setup_db()
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/abracadabra/storage.py", line 26, in setup_db
with get_cursor() as (conn, c):
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/media/somdev/84AE09BCAE09A82E/SentientGeeks/SentientGeeks/Music_Similiarty/test/venv/lib/python3.10/site-packages/abracadabra/storage.py", line 18, in get_cursor
conn.close()
UnboundLocalError: local variable 'conn' referenced before assignment
If abracadabra wrote the currently used settings and app version to the database, then it could check if the database is correct. Otherwise users may train the recogniser on one parameter set and then be surprised when they change a setting and the accuracy is poor.
Hello. How to print out the time of the recognized part of the song? e.g.
the 3:32 part of the file is heard from the microphone and it prints the second or millisecond of the part that is playing, and it is constantly updating.
336739__astronautchild__goddog.wav at 13M took over 19 minutes (extrapolating from 46.6s for 4%)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.