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

Show all comments

Showing thread 130 of 231

haha692 replies#
I have been wanting to do similar things. But, shied away because I wasn't in the mood to find out if this sort of thing was legal or not. Can someone here who knows this space better talk about the legal aspect of doing something like this?
pbhjpbhj#
I doubt T&Cs have included "no training embeddings with our data" yet; so they're probably clear there (and it might be Fair Use in USA??).

On the main question, I think we'll be waiting for Getty v whoever (Dall-E?) lawsuit to see what courts think.
A useful indicator might be have any major corporation's released AIs trained on public data - because they will be the prime targets for people looking to sue and walk away with lots of money. You can get plugins for Photoshop to do AI imagery, but I don't think Adobe sell any?

input_sh#
You're just interacting with the API, you're not gonna have any legal issues. I have some experience with Spotify's API (not MusicKit), so I'm gonna try guessing how it works based on that.

There's an API endpoint called audio_features[0] that tells you things about the song (tempo, danceability, acousticness, major/minor key...), so while you can't get full versions of every song, you can approximate how they sound like based on Spotify's audio analysis of them.
So, build a database of audio_features while respecting API limits, find the most similar ones based on about a dozen variables, and you're good to go.
[0] https://developer.spotify.com/documentation/web-api/referenc...