A skeleton website built with Flask and HTML5 Audio, that can be used for building any query-by-humming-like service.
pip install -r requirements.txt
python runserver.py
The web UI will upload a WAV file to the server; you can then process the file using your Python code here, and return the result as JSON.
The JSON object will be retrieved back to the browser, and you can edit here to change what to do with the result. By default, it shows the JSON in a textarea.
Due to privacy issues, some browsers don't allow access to the microphone when using http
. It'll be still okay to run this website locally, but you will need to obtain an SSL certificate if you'd like to publicly serve the website.