For many years now, smartphone owners can recognize what is playing in seconds. The first, or at least most famous, application is Shazam, whose company was founded in 1999, but it was not until the beginning of the last decade, with the arrival of smartphones, that the "boom" hit. In other devices, such as computers, you have to look for a little more life, and in Linux we have options such as mousai.
Last December we talked about songrec, what was a customer of Shazam that also allows us to recognize browser songs if we change the User-Agent so that it believes that we entered from Safari. Mousai uses the API of audd.io, an alternative that does not have an official application, but this API can be used to create our own application, bot or browser extension.
Table of Contents
Mousai, the simple desktop app
In a blog about Linux, the first thing we have to mention is Mousai, the desktop application. Once installed, it tells us that it uses the audd.io API, and that it will only allow us to recognize a few songs a day if we don't add a username and password. When we enter, what we see is a very simple window with two buttons: listen (listen) and the hamburger. To recognize the songs, we have to click on the «Listen» button and wait about 5s.
From the options hamburger we can clear the history, reset the token (exit) and show us the shortcuts, of which we are interested in two: Ctrl + R listens and Ctrl + C stops. To remember them, I think it is a good idea to think that R is Record and C is the same as for processes in the terminal. And if we hit the play button (Play) takes us to a web page from where we can listen to the song on different services, such as Spotify or YouTube Music.
To install Mousai, just open the software store and search for the app, as long as we have package support activated Flatpak and the software store is compatible. If not, it can also be built with GNOME Builder and Meson, as explained in the project GitHub page. For Arch Linux-based operating systems, it is available from AUR.
Also available as a Telegram bot or Chrome extension
To take advantage of the API that Mousai uses no need to install desktop app. We can also use the telegram bot or the Chrome extension. Of the two previous options, I prefer to use the bot, since I can use it on any device, including the PineTab with Ubuntu Touch. Waiting for shazam.com, good are Mousais.