this post was submitted on 07 Apr 2026
7 points (100.0% liked)

Ask Lemmy

38965 readers
1708 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, toxicity and dog-whistling are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

I heard that the reason why music identifiers don't work offline is because their databases are huge, with millions of songs (including video game music). Databases containing only video game music may be significantly smaller, even if they contain the soundtracks of over 1000 games.

all 12 comments
sorted by: hot top controversial new old
[–] 9point6@lemmy.world 3 points 5 hours ago* (last edited 5 hours ago) (1 children)

Google pixel phones have automatic offline music recognition where the database is something like 50MB IIRC and it's pretty good unless I'm listening to something particularly niche

I assume you could build a similar database if you had the source material to do so.

You're potentially gonna have an issue with games that have dynamic soundtracks that aren't exactly the same every time (think in an action game how the music changes based on if fighting or something)

[–] paraphrand@lemmy.world 1 points 5 hours ago* (last edited 5 hours ago) (1 children)

Damn, how do they keep the track metadata in such a small file?

I feel like my iTunes (Apple Music) library data is at least that big.

[–] 9point6@lemmy.world 4 points 3 hours ago

You had me wondering so I looked it up

I dropped a zero, it's 500MB (and may be a bit bigger now perhaps)

https://venturebeat.com/media/how-googles-pixel-2-now-playing-song-identification-works

[–] Rhynoplaz@lemmy.world 3 points 8 hours ago (1 children)

Sounds like quite the endeavor. I'm just curious how you would collect recordings of all video game music for the database. Music is distributed as tracks on an album, and I don't know if you can easily rip that data from the code, or if someone would have to record it from gameplay.

[–] LodeMike@lemmy.today 2 points 7 hours ago (1 children)

Music identification services like Shazam get it the same way as Spotify

[–] Rhynoplaz@lemmy.world 2 points 7 hours ago

Right, but they wouldn't be able to identify Wood Man's theme from Mega Man 2. As far as I know, nobody has collected and included those in the recognition software.

[–] toiletobserver@lemmy.world 2 points 8 hours ago* (last edited 8 hours ago)

Possibly. Using meta data to identify sound should be relatively small. Then, sound samples from the first few seconds would allow comparison without the burden of having everything. Getting the data and samples is probably the hardest part.

There are open source tools to do this kind of thing, you should see if they have offline versions.

I've used music brainz picard in the past.

[–] Blaster_M@lemmy.world 1 points 7 hours ago

Problems:

  • Game music isn't often released on an album
  • Some games use vertical mixing (dynamic tracks that separate instruments to allow the game to vary the song's intensity)
  • Some games use horizontal mixing (dynamic tracks that are indexed for the game to dynamically switch beats or add bridges between songs at marked points for seamless soundtrack changes)
  • Some games use both
[–] fuckwit_mcbumcrumble@lemmy.dbzer0.com 1 points 7 hours ago (1 children)

You probably could. But what’s the target demographic for this?

How many songs does a typical game have? You could just look up the soundtrack and play from the 12 different songs until you find the right one.

[–] dual_sport_dork@lemmy.world 1 points 8 hours ago

In terms of raw horsepower as well as storage, probably. People were already doing audio fingerprinting in the early '90s on, like, 386 hardware. It ought to be trivial for anything even vaguely modern. The entire fingerprint data for a 2 minute chunk of audio is 3-4 kB or something. I don't even think the size of the database will be hugely onerous.