I've found an interesting gem to discover from an unknown file which music it comes from returning the title and the artist : https://github.com/tenderlove/earworm
The fact is the last commit was 4 years ago and the website used is no longer working...
Does anyone know of another solution for this problem ? Another gem or another snippet ?