Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.07 KB

README.md

File metadata and controls

25 lines (14 loc) · 1.07 KB

HTML5 Audio Query Template

A skeleton website built with Flask and HTML5 Audio, that can be used for building any query-by-humming-like service.

Screen Capture

Running

pip install -r requirements.txt
python runserver.py

Hacking

Backend

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.

Frontend

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.

Gotchas

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.