Monday, 25 June 2018

Adblocker for radio

Tomek Rękawek, irritated by ads on the radio, created an app that mutes them. Radio Adblock uses digital signal processing to detect distinctive audio patterns that signal the beginning and end of breaks. (via Hacker News)

I also prepared a simple standalone version of the analyzer, that connects to the Trójka stream on its own (without an external ffmpeg) and plays the result using javax.sound. The whole thing is a single JAR file and contains a basic start/stop UI. It can be downloaded here: radioblock.jar. If you feel uneasy about running a foreign JAR on your machine (like you should do), all the sources can be found on my GitHub. Apparently, it works :)

https://soundcloud.com/tomek-r-kawek/commercial-block-muted

To make it work universally, perhaps DSP could detect the use of extreme waveform compression. This makes ads sound as loud as possible without increasing the signal volume, and is a technique that advertisers and radio stations supposedly use to skirt the regulations that forbid them from doing just that. It would also have the bonus of silencing shitty pop songs.