Giter Club home page Giter Club logo

audiomatch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

audiomatch's Issues

install problem

Hello,

OS: Debian bullseye

$ pip install audiomatch==0.2.2
Collecting audiomatch==0.2.2
  Using cached audiomatch-0.2.2.tar.gz (29 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: audiomatch
  Building wheel for audiomatch (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmp2m2lt39w_in_process.py build_wheel /tmp/tmp0nbghnz9
       cwd: /tmp/pip-install-z7tqi82t/audiomatch_e78a7e95d21c4f00a110bd350e82ecfb
  Complete output (26 lines):
  Traceback (most recent call last):
    File "/tmp/tmp2m2lt39w_in_process.py", line 280, in <module>
      main()
    File "/tmp/tmp2m2lt39w_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/tmp2m2lt39w_in_process.py", line 204, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-5cy4fyqr/overlay/lib/python3.9/site-packages/poetry/masonry/api.py", line 59, in build_wheel
      WheelBuilder.make_in(
    File "/tmp/pip-build-env-5cy4fyqr/overlay/lib/python3.9/site-packages/poetry/masonry/builders/wheel.py", line 50, in make_in
      wb.build()
    File "/tmp/pip-build-env-5cy4fyqr/overlay/lib/python3.9/site-packages/poetry/masonry/builders/wheel.py", line 76, in build
      self._build(zip_file)
    File "/tmp/pip-build-env-5cy4fyqr/overlay/lib/python3.9/site-packages/poetry/masonry/builders/wheel.py", line 96, in _build
      self._env.run(
    File "/tmp/pip-build-env-5cy4fyqr/overlay/lib/python3.9/site-packages/poetry/utils/env.py", line 384, in run
      output = subprocess.check_output(
    File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "/usr/lib/python3.9/subprocess.py", line 505, in run
      with Popen(*popenargs, **kwargs) as process:
    File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: 'python'

  ERROR: Failed building wheel for audiomatch
Failed to build audiomatch
ERROR: Could not build wheels for audiomatch which use PEP 517 and cannot be installed directly

and environment:

$ pip install setuptools
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (52.0.0)

$ pip -V
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

What is missing?
Thanks and best!

is there a way to talk a file system recursivly?

My audio files are split up across directories in the form of [artist]/[album] etc. So spread across hundreds of directories. How do I just compare all the files anywhere in the directory tree?

Cant install

'''
Collecting audiomatch
Using cached audiomatch-0.2.1.tar.gz (29 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: audiomatch
Building wheel for audiomatch (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for audiomatch (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
A setup.py file already exists. Using it.
Traceback (most recent call last):
File "/tmp/pip-install-i9bz7pf0/audiomatch_15dfee43325649da87f38ad6b0952d75/setup.py", line 2, in
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-b9m9ibg4/overlay/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 67, in build_wheel
return WheelBuilder.make_in(poetry, Path(wheel_directory))
File "/tmp/pip-build-env-b9m9ibg4/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 79, in make_in
wb.build(target_dir=directory)
File "/tmp/pip-build-env-b9m9ibg4/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 113, in build
self._build(zip_file)
File "/tmp/pip-build-env-b9m9ibg4/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 167, in _build
self._run_build_command(setup)
File "/tmp/pip-build-env-b9m9ibg4/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 205, in _run_build_command
subprocess.check_call(
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '/tmp/pip-install-i9bz7pf0/audiomatch_15dfee43325649da87f38ad6b0952d75/setup.py', 'build', '-b', '/tmp/pip-install-i9bz7pf0/audiomatch_15dfee43325649da87f38ad6b0952d75/build']' returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for audiomatch
Failed to build audiomatch
ERROR: Could not build wheels for audiomatch, which is required to install pyproject.toml-based projects
'''

I have setuptools installed

OS: arch linux

Use Cython for Population Count (popcount)

A quick test showed that Cython can significantly improve performance for a popcount operation.

For example, that code runs 2-3x times faster than regular python:

cimport cython
from libc.stdint cimport uint32_t

cdef extern int __builtin_popcount(unsigned int) nogil


def popcount(uint32_t x):
    return __builtin_popcount(x)

Comparing short audio files

Hi,
I'm interested in finding near-duplicate audio files. My dataset is about 3000 thousands short audio files, between 0.5 seconds to 5 seconds. Unlike Shazam, both the "target" audio (i.e. the songs in Shazam's case) and the user input are short, and both might contain noise.

Can this library help?
If so, are there any recommendations for tuning parameters?

N.B - if a file is matched to multiple other files, it's fine - I have a less efficient algorithm that can verify which match is correct. In other words, I can handle some amount of false positives, but I don't want false negatives.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.