Paraphrasing a quote from a Stack Overflow forum post to describe the request:
"Only one application has ever done this really well that I know of - .MusicIP mixer.
http://www.spicefly.com/article.php?page=musicip-softwareIt hasn't been updated for about ten years (and even then the interface was a bit clunky), it requires a very old version of Java, and doesn't work with all file formats - but it was and still is cross-platform and free.
It uses the acoustic fingerprints for every mp3/ogg/flac/m3u in your collection saved as a tag on the song, and given one or more songs, generates a playlist similar to those songs.
It only uses the acoustics of the songs, but has other parameters to control the scope of the similarity matching"
See parameter selection below here:
https://imgur.com/a/GwDV9nM