Lurker News
Hey HN!

I just shipped a project I’ve been working on called Maroofy: https://maroofy.com
You can search for any song, and it’ll use the song’s audio to find other similar-sounding music.
Demo: https://twitter.com/subby_tech/status/1621293770779287554
How does it work?
I’ve indexed ~120M+ songs from the iTunes catalog with a custom AI audio model that I built for understanding music.
My model analyzes raw music audio as input and produces embedding vectors as output.
I then store the embedding vectors for all songs into a vector database, and use semantic search to find similar music!
Here are some examples you can try:
Fetish (Selena Gomez feat. Gucci Mane) — https://maroofy.com/songs/1563859943 The Medallion Calls (Pirates of the Caribbean) — https://maroofy.com/songs/1440649752
Hope you like it, and would love to hear any questions/feedback/comments! :D

Comments (427) 231 threads

Earlier comments
jrd259#
It did well on ""Eyes of the World" Grateful Dead finding some artists with similar vibe I never heard from. It did poorly in "Heart of the Sunrise" by Yes and "Nautilus" by COVET https://maroofy.com/songs/1084458728.

One thing that stuck out for me is that for some genres (not jazz, not classic) the singing really matters. Covet, for example, is instrumental music, no singer at all. I wonder if you'd get better results by separately training on the vocals and the rest. (I think I've read that vocal extraction works these days, though I confess it's a lot more work.)

paxys1 reply#
Solid work, but this only reinforces my belief that music recommendations is an area that is not (yet) cracked by AI. You can find similar songs with great accuracy, sure, but even if two songs are close to each other by all calculable metrics they can still vary drastically in subjective quality.

And a quick suggestion – all my top results when searching for popular songs were songs that were either different versions of it or those that had heavily sampled the original. While the algorithm is spot on, that isn't exactly what I am looking for. Maybe have a filter to exclude results that are too close a match?

popinman3221 reply#
Have you tried Gnoosic[0] yet? It's a more standard recommender system, I think. Some of the recommendations are really on point.

[0]: https://www.gnoosic.com/

efreak#
Gnoosic and other existing tools are entirely useless for some things. Most music tools don't even allow entry of individual songs, which can really mess things up if your artist has changed sound styles over the years, or plays in multiple genres.

For example, any time I hear music I like in a Disney movie and want to hear similar music, all I can get recommendations for is movie soundtracks or whatever the guest artist is known for.
The example that covers up for me on occasion is the soundtrack to The Road To El Dorado, specifically the instrumental tracks (Cheldorado, The Brig, Wonders of the New World); Chosic.com gives me a ton of other soundtracks, mostly orchestral scores, for things like Kung Fu Panda, LOTR, Assassin's Creed, Angry Birds, POTC, etc. While it's nice to be able to tweak the algorithm on chosic to pick quiet movie scores for background music, that's not what I'm looking for. And gnoosic is entirely useless for that.

rohith25061 reply#
Tried few recommendations and can definitely use an alternative for Spotify radio.

Seems like you are dodging the question of data access and I am not sure why. Even running an intelligent scraper to download 120M song previews sounds too complex and might take days to months as you have to rotate IPs and not bombard the server all the time. If you manage to do that, kudos. That itself is a great achievement. If not, can you let us know how did you get the data access? You might help other devs who want to try something similar

m3kw91 reply#
He’s not obligated to tell us if he knows it’s an edge he wants to keep
rohith25061 reply#
I don’t think I agree with that. If he is scraping, all he can say is yes. The details of the scraper is proprietary and that’s his edge for sure.

If not and he found an unauthorized source of retrieving information, this reveals a serious security breach in iTunes API and it’s my valid concern as a paid customer.
120M is a huge number and it’s not even text. It’s media

yunwal#
I’m pretty sure the model is trained on the 30 second previews. If you type in a song with a lot of different sections, the suggestions match the preview and not the rest of the song. Bohemian rhapsody, for example
xnx2 replies#
How did you download that many songs? Wouldn't that be something on the order of 360 terabytes?
LunarAurora1 reply#
I guess he is working with the 30s low rez previews, I know you can download them with the Spotify API. Apple Music should be similar.
ComplexSystems2 replies#
Wouldn't this still be about 36 terabytes of data?
winrid#
Meh, you can store that on a single d3en.2xlarge for $780.
charcircuit1 reply#
You would only need to store the embeddings and not the file audio itself.

Continue this thread — 1 reply

youssefabdelm#
Also curious about this... where did you get the dataset?

Load more comments