worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.41k stars 1.43k forks source link

Collecting microphone signal from HTML5 MediaStreamAudioSourceNode #51

Closed sandro-salles closed 10 years ago

sandro-salles commented 10 years ago

Hey Man! Such a great project you have done!

This is not exactly an issue, just a doubt. Do you have any example (or hint) on how to collect the audio input from a microphone over the browser and stream it to your module (via websockets or something like that, real-time) ?

I'm trying to integrate dejavu to a Django project that among other things, listen to the microphone and reacts to specific songs.

Any help would be much appreciated!

Regargs!

worldveil commented 10 years ago

Could you point me to the relevant docs with the streaming library you are trying to use?

At the end of the day, you need audio signals at a fixed (and high) rate like 44.1kHz which can be FFT'd by dejavu to make fingerprints. That's the only prerequisite.