Send us an animal video,
and we'll return matching sounds!
This page is served by a node.js webserver, which is also responsible for temporarily
storing your video on its disk when you upload something.
It then tells another server, which is run by Python, where to find your video.
On the Python server, there is running a programm using a pre-trained machine learning
model, based on the so called YOLOv5 algorithm for object detection. After processing
and analyzing the video frames, the Python server then sends back the information
about what animals have been detected to the node.js webserver.
Using this information, the webserver is now calling the API (Application Programming
Interface) of freesound.org, which is a huge collaborative database of audio files,
released under Creative Commons licenses.
Communicating with that API results in a list of audio files, which are then handed
over to the page you are looking at to create audio controls streaming the audio
directly from the freesound servers.
For ensuring that the sounds only play at a time corresponding to the actual animals
seen in the video content, we use timestamps. To manipulate these files with the
controls while playing, we make use of the Web Audio API - a powerful and versatile
system for controlling audio on the Web.
And that's how the magic works!