Using the Shazam audio fingerprinting algorithm, SongRec can identify a song from an audio file or using the microphone. It’s written in Rust + Gtk3.
Source: Identify Songs On Your Linux Desktop Using SongRec, A Shazam Client For Linux – Linux Uprising Blog