Skip to content

CodeAX2/Spotify-Muter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Muter

A Windows desktop application that automatically mutes Spotify during advertisements and unmutes when the music resumes. Built with WPF and WiX.

Spotify Muter App

Features

Automatic Ad Detection

  • Monitors Spotify's window title to detect playback state
  • Songs display as ARTIST - SONGNAME, while ads show different patterns
  • Instant muting when ads begin, automatic unmuting when music returns

Artist Blacklist

  • One-click button to add the current artist to a blacklist
  • Handles edge cases where ads mimic the song title format
  • Blacklist persists between sessions via local file storage

Desktop Notifications

  • Windows toast notifications alert you when music is muted/unmuted

Tech Stack

Application

  • C# with WPF
  • .NET Framework 4.8
  • sverris/AudioManager for controlling window audio level
  • DesktopNotificationmanagerCompact for desktop alerts

Installer

  • WiX Toolset for MSI installer creation
  • Start menu shortcut with toast notification integration

How It Works

Ad Detection Logic

The application continuously monitors the Spotify process window title:

  1. Song Playing: Title follows ARTIST - SONG NAME format
  2. Advertisement: Title shows Spotify or other non-standard format
  3. Paused: Title shows Spotify Free or similar

When an ad is detected, the app uses sverris/AudioManager to mute only the Spotify application, allowing other audio to continue playing.

Blacklist System

Some advertisements match the standard title format. Users can click the "Register Current Song as Advertisement" button to add the current artist name to a persistent blacklist stored in blacklist.txt.

Installation

Download the Installer (Recommended)

  1. Go to the Releases page
  2. Download the latest .msi installer
  3. Run the installer and follow the prompts
  4. Launch Spotify Muter from the Start Menu

Requirements

  • Windows 10 or later
  • .NET Framework 4.8
  • Spotify Desktop application

About

I do not like Spotify ads, so I created an app that mutes Spotify any time an ad pops up, and un-mutes when the ads are finished.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages