cd /news/machine-learning/i-built-a-contextual-audio-decision-… Β· home β€Ί topics β€Ί machine-learning β€Ί article
[ARTICLE Β· art-27090] src=github.com β†— pub= topic=machine-learning verified=true sentiment=↑ positive

I built a contextual audio decision engine to stop loud TV ads (CEPA Logic)

A developer built AdBuster PRO, a local Windows tool that uses ML/AI and CEPA Logic to automatically lower the volume of loud TV commercials in real time. The application runs entirely offline with no cloud, accounts, or telemetry, and supports IR blasters for volume control. It aims to solve the problem of jarring volume spikes during advertisements.

read13 min publishedJun 14, 2026

Offline audio stabilization engine powered by ML/AI and CEPA Logic.

A small Windows tool that lowers loud TV ads automatically and restores normal volume smoothly.

AdBuster PRO is a lightweight Windows application that monitors TV audio in real time and automatically reduces the volume when loud commercials appear.

When normal audio returns, the volume is restored smoothly and naturally.

No cloud.

No accounts.

No telemetry.

No data collection.

Everything runs locally on your PC or laptop.

  • Download the latest release from the Releases page.

  • Unzip the folder anywhere on your PC.

  • Run Start.bat to launch all modules automatically.

  • (Optional) Configure your Broadlink IR device for volume control.

  • Start watching TV β€” AdBuster will detect loud ads and stabilize audio in real time.

  • πŸ”Š Real‑time loudness detection - πŸ“‰ Automatic volume reduction during commercials - πŸ”„ Smooth volume restoration after ads - πŸ“‘ IR blaster support (Broadlink RM series) - βš™οΈ Configurable thresholds and reaction times - πŸ–₯️ Runs silently in the background - πŸ” Fully local β€” no internet required

  • A microphone listens to the TV audio.

  • When a sudden loudness spike is detected (typical for ads), AdBuster PRO decides whether to lower the volume.

  • The app sends a command to the local Flask server (VolMaster).

  • VolMaster forwards the IR command to the Broadlink device.

  • Broadlink sends the IR signal to the TV.

  • When audio returns to normal, the app restores the previous volume level.

All logic is processed locally β€” no cloud, no external servers.

Below is a simplified architecture diagram showing how the main components

of AdBuster PRO interact. This diagram does not reveal internal algorithms

or implementation details.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        MICROPHONE          β”‚
β”‚    (raw audio signal)      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ audio frames
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        AUDIO ENGINE        β”‚
β”‚  RMS / mean / std / range  β”‚
β”‚   smoothing / GUI level    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ features
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚       ML CONTROLLER        β”‚
β”‚      (ml_controller.py)    β”‚
β”‚ - collects RMS history     β”‚
β”‚ - calls ml_pro_update()    β”‚
β”‚ - confirms AD / NORMAL     β”‚
β”‚ - toggles ad_mode          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ AD / NORMAL state
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         CEPA ENGINE        β”‚
β”‚ - contextual analysis      β”‚
β”‚ - deadzone / stable zone   β”‚
β”‚ - spike detection          β”‚
β”‚ - anti-spam limits         β”‚
β”‚ - VOL_UP / VOL_DOWN        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ decision
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚     AdBuster App Logic     β”‚
β”‚ - pending_cmds queue       β”‚
β”‚ - cooldown timers          β”‚
β”‚ - 2x up/down safety limits β”‚
β”‚ - sends HTTP commands      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ HTTP GET /send?cmd=...
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚      VolMaster Server      β”‚
β”‚   (Flask API, port 5000)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ IR command
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Broadlink IR Blaster     β”‚
β”‚ (RM Mini / RM Pro series)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ infrared signal
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚      TV / Audio Device     β”‚
β”‚   (volume changes applied) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

AdBuster didn’t begin as a polished application. The very first prototype was extremely rough β€” a small script running on outdated hardware, barely keeping up with real‑time audio.

It had:

  • no interface
  • no machine learning
  • no CEPA Logic
  • no prediction
  • no visualization

Just one idea:

β€œWhat if the computer could stop loud commercials for me?”

Early tests were unpredictable.

Sometimes the system reacted too late, sometimes too early, sometimes perfectly β€” and sometimes it made everything worse.

But the idea was alive.

Everything changed after one key realization:

Volume spikes aren’t random β€” they follow patterns.

Commercials, trailers, boosted mixes… they all share the same traits:

  • compressed dynamics
  • boosted mid‑range
  • constant high energy
  • predictable timing
  • repetitive structure

Once this became clear, the direction was obvious:

AdBuster needed machine learning.

Not because ML is trendy β€” but because it was the only way to detect these patterns in real time.

This was the moment AdBuster truly began.

Short demo recorded quickly on a phone β€” quality is low, but it clearly shows how the app reacts to loudness spikes and sends IR volume commands.

AdBuster_demo.mp4

➑️ Full documentation is available in the docs folder.

This repository includes an additional proprietary license covering the CEPA Logic (Contextual Event Pattern Analysis Logic) analytical framework.

For full terms, see the dedicated license file:

CEPA Logic is not a generic algorithm but a full contextual reasoning framework for real‑time audio event interpretation and automation. A full technical explanation of how CEPA Logic works β€” including decision flow, contextual evaluation, human‑like behavior model, data processing pipeline and real‑world examples β€” is available in a dedicated document:

This document is intended for:

  • audio DSP engineers
  • machine learning engineers working with audio classification
  • smart‑home and consumer electronics R&D teams
  • OEM partners evaluating CEPA Logic for integration
  • automation and embedded systems developers

This file contains:

  • detailed description of CEPA architecture
  • explanation of all decision types (BOOST, BLOCK, DELAY, SMOOTH, ALLOW)
  • real‑time data flow
  • human‑reaction analogy
  • example code
  • step‑by‑step event walkthrough

No other Windows application offers automatic ad detection, audio analysis, and Broadlink-based volume control. Existing tools can only send manual IR commands and do not provide any intelligent automation.

Feature Other Tools AdBuster 2.0 PRO
Broadlink IR Control Manual only Automatic + manual
Automatic Ad Detection Not available Yes
Audio Level Analysis Not available Yes
Real-Time Reaction Not available Yes
Automatic TV Volume Adjustment Manual only Fully automatic
Intelligent Algorithms None CEPA Logic + AdBuster Engine

Summary:

AdBuster 2.0 PRO stands alone as the only Windows application capable of detecting loud commercials and automatically controlling TV volume through Broadlink devices.

All other tools are limited to basic, manual IR control and cannot be compared to the intelligent automation provided by AdBuster.

WinApps Similar to AdBuster 2.0 PRO (PDF)

AdBuster 2.0 PRO is a unique offline technology that combines real‑time microphone analysis, contextual CEPA logic, on‑device machine learning and Broadlink IR control to automatically stabilize TV audio. The system works on any Windows PC or laptop and supports virtually any IR‑based TV.

Opportunities:

  • Licensing for TV, audio and smart‑home manufacturers
  • Integration with streaming platforms and media devices
  • Unique IP: CEPA + ML + IR control pipeline
  • Open to commercial proposals and partnership discussions.

AdBuster 2.0 PRO is an independent R&D project developed with passion, countless hours of testing, and a strong focus on offline privacy‑first technology.

If you find this project useful, you can support its development in several ways:

Donate via PayPal

  • Buy me a coffee

  • Share the project with others

  • Star the repository ⭐

  • Report issues

  • Suggest new features

  • Propose integrations (TV, audio, smart‑home, IR devices)

  • Help test compatibility with Broadlink IR devices

Every form of support helps the project grow and evolve.

Thank you for being part of the journey.

AdBuster 2.0 PRO is a portable Windows application. No installation, no Python, and no additional software are required.

AdBuster 2.0 PRO – Latest Release

ZIP file name: AdBuster_2.0_PRO_Test.zip

Unzip the downloaded file to any folder on your PC

(e.g., Desktop, Documents, or a dedicated Tools folder).

  • Open the extracted application folder (the folder created after unzipping AdBuster_2.0_PRO_Test.zip).
  • Right‑click Start.bat β†’ Send to β†’ Desktop (create shortcut).
  • (Optional) Right‑click the shortcut β†’ Properties β†’ Change Icon…

Select the included icon file: AdBuster.ico.

The shortcut will work regardless of where the folder is located.

Always start AdBuster using:

Start.bat

This launcher automatically starts all required modules:

  • AdBuster.exe (main UI)
  • Aduster.exe (audio engine)
  • VolMaster.exe (Broadlink Flask server)

These executables must remain in the same folder and should never be run manually.

If you use AdBuster with a Broadlink IR device

(for example: Broadlink RM4 Mini or Broadlink RM4 Pro):

  • Configure the Broadlink IR device in the official Broadlink mobile app (one‑time setup).
  • Connect the Broadlink device to your Wi‑Fi network.
  • Place the Broadlink IR blaster near your TV or audio device.

After completing these steps, AdBuster will automatically communicate with the Broadlink IR device.

VolMaster (Flask server) must be configured with:

Broadlink IP address (example: 192.168.1.25)

Broadlink MAC address in UPPERCASE, without separators

Correct: 47A1B2CDE3F4

Incorrect: 47:A1:B2:CD:E3:F4

Incorrect: 47-a1-b2-cd-e3-f4

Incorrect: 47a1b2cde3f4 (lowercase) - Port 5000 (default communication port)

If the MAC address contains colons, dashes, lowercase letters, or symbols,

the server will not detect the device.

When you run Start.bat, the system launches:

  • AdBuster.exe β†’ main interface
  • Aduster.exe β†’ audio analysis engine
  • VolMaster.exe β†’ Flask server for Broadlink IR

These modules communicate with each other and must stay together in the same folder.

The Flask server listens on port 5000 and handles all IR communication.

After the initial Broadlink setup:

  • No internet is required

  • No cloud services

  • No accounts

  • No telemetry

  • All processing is fully local

  • Added ML/AI PRO mode

  • Added CEPA Logic integration

  • Added Broadlink IR control (VolMaster)

  • Improved real‑time audio stabilizer

  • Added 10‑second audio plot visualization

  • New UI layout and redesigned modules

  • Full offline processing (no cloud, no telemetry)

  • Improved volume detection accuracy

  • Added basic CEPA logic

  • Added early Broadlink IR tests

  • UI improvements

  • Initial release of AdBuster PRO

  • Basic real‑time volume stabilizer

  • First working Windows build

A redesigned decision‑making engine with improved context awareness, better handling of borderline audio states, and more adaptive thresholds. The goal is to make CEPA less binary and more β€œhuman‑like” in how it reacts to dynamic audio environments.

A local, offline training pipeline that allows the model to refine itself based on the user’s environment. The system will collect short audio snapshots, classify them, and update the model without sending any data outside the device.

Extended IR control layer supporting multiple TVs, soundbars, receivers and Broadlink‑compatible devices. The goal is to allow users to define multiple profiles and switch between them dynamically.

A more robust IR communication layer with improved retry logic, faster command dispatching, and better handling of Broadlink device discovery. This includes support for additional Broadlink models and improved error recovery.

Additional interface components for monitoring, diagnostics and customization:

  • real‑time CEPA decision graph
  • ML confidence visualizer
  • IR command monitor
  • advanced audio calibration panel

No. AdBuster 2.0 PRO is fully portable.

Just unzip the folder and run Start.bat.

No. Everything is already compiled into standalone executables.

Yes.

After the initial Broadlink setup, the entire system works 100% offline.

No.

There is no telemetry, no analytics, no cloud communication.

Because Start.bat launches all required modules in the correct order:

  • AdBuster.exe (UI)
  • Aduster.exe (audio engine)
  • VolMaster.exe (Flask server)

Running executables manually may break communication.

Check:

  • MAC address must be UPPERCASE and without separators
  • IP address must be correct
  • Port 5000 must be free
  • Broadlink must be on the same Wi‑Fi network

Yes β€” both models are fully supported.

Yes.

AdBuster will still analyze audio and detect ads, but IR volume control will be disabled.

Yes, but if you move the folder to a different location, you must recreate the shortcut.

Windows shortcuts store the full path, so moving the folder breaks the old shortcut.

No.

It only reads audio levels β€” it does not change system volume or audio drivers.

  • Windows 7, 8, 10 or 11 (64‑bit recommended)
  • Built‑in laptop microphone or any external USB microphone
  • Broadlink RM series IR blaster (required for full functionality), e.g. RM3 or RM4 models with IR support
  • No internet required after initial Broadlink setup

Broadlink is a compact Wi‑Fi IR blaster that replaces your TV or audio remote. It receives a command over Wi‑Fi and instantly sends the matching infrared signal to your TV, soundbar, receiver, or set‑top box β€” exactly as if you pressed the button on the physical remote. Everything works locally, without cloud, delays, or internet access.

AdBuster supports all Broadlink devices that include an IR blaster and operate in local LAN mode. This includes RM4 Mini, RM4 Pro, RM Mini 3, RM Pro+, RM4C Mini, and older RM2 models. RF‑only or cloud‑only devices are not supported.

AdBuster 2.0 PRO uses real, structured machine‑learning models that run fully offline.

To provide transparency, below are internal diagnostic previews showing how the engine loads and verifies its analytical components.

The standard engine is based on a real RandomForestClassifier

with:

  • 150 estimators
  • 50 input features
  • Local-only execution
  • Functions: predict()

,predict_proba()

,fit()

,score()

,feature_importances_

"This preview confirms that the file exists, loads properly, and is recognized by the system."

The PRO version unlocks an enhanced DeepAudioModel

:

  • 30 layers
  • 4 output classes
  • Advanced preprocessing & internal state logic
  • Fully offline
  • Activated only with a valid PRO key

"The preview demonstrates that the deep model is a real, functional component used by AdBuster PRO."

These previews confirm that:

  • AdBuster PRO uses authentic analytical models
  • The deep module is a more advanced engine available after activation
  • Everything runs locally on the user’s device
  • No user audio or personal data is stored or transmitted
  • The technology behind the app is genuine and professionally designed

This section provides a transparent look into the internal structure of the engine powering AdBuster PRO.

If one server is slow or unavailable, try another mirror.

Server QR Code
OneDrive (Main)
MEGA
Dropbox
Google Drive

Scan to read the CEPA + ML technical summary.

AdBuster PRO is an offline Windows application that stabilizes TV audio by detecting abnormal loudness patterns and sending IR volume commands to a Broadlink device, which then controls the TV.

  • Audio Engine β€” real‑time loudness metrics
  • CEPA Engine β€” contextual decision logic
  • ML Layer (FREE + PRO/Aduster) β€” pattern recognition support
  • IR Engine (VolMaster) β€” Broadlink TV volume control

All processing happens locally.

Extracts simplified metrics:

  • smoothed loudness
  • short‑term variation
  • long‑term stability

Used to distinguish normal content from loud segments.

Human‑like logic that:

  • interprets audio patterns
  • detects disruptive spikes
  • avoids over‑correction
  • restores volume smoothly

Exact rules are proprietary.

  • analyzes short‑ and mid‑term audio behavior
  • helps CEPA classify loudness patterns
  • runs fully offline (model.pkl)

The PRO module (Aduster) is an offline machine‑learning engine that:

  • analyzes long‑term audio behavior
  • identifies commercial‑like patterns
  • assists CEPA in difficult edge cases
  • uses the PRO model (model_deep.pkl)

Model architecture is proprietary.

AdBuster PRO does not control the Broadlink device itself. It sends IR volume commands (up / down / mute) to the Broadlink unit, and the Broadlink device applies those commands to the TV hardware.

The IR engine (VolMaster) handles:

  • Broadlink device discovery
  • IR code learning (optional)
  • command throttling
  • connection watchdog
  • local LAN communication (no cloud)

Provides:

  • real‑time visualization
  • calibration tools
  • mode selection (AUTO / ML / MUSIC / AD)
  • Broadlink status

Fully offline:

  • no cloud
  • no accounts
  • no telemetry
  • no data collection
  • no audio recording (audio is analyzed in real time and never stored)

Β© 2026 β€” D.P‑G & AdBuster Team Dublin. All rights reserved.

── more in #machine-learning 4 stories Β· sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/i-built-a-contextual…] indexed:0 read:13min 2026-06-14 Β· β€”