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.

  • 9point6
    link
    fedilink
    arrow-up
    3
    ·
    8 hours ago

    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)

  • Rhynoplaz
    link
    fedilink
    arrow-up
    3
    ·
    10 hours ago

    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.

      • Rhynoplaz
        link
        fedilink
        arrow-up
        2
        ·
        9 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
    link
    fedilink
    arrow-up
    2
    ·
    10 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
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 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
    link
    fedilink
    arrow-up
    2
    ·
    10 hours ago

    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 🐧🗡️
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 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.