Skip to main content

AIMP Auto Pause/Resume

AIMP Auto Pause/Resume is a Python utility that automatically controls the playback of the AIMP music player based on the state of other audio sessions on your system. When any other application (e.g., a video player) is actively running the utility will pause AIMP. Once these sessions become inactive, AIMP will resume playing.

Features

  • Automatic Detection: Monitors system audio sessions using the pycaw library.
  • Seamless AIMP Control: Automatically pauses AIMP when another application is active and resumes playback when all other sessions are inactive.

Prerequisites

Installation

  1. Clone the Repository:

    git clone https://github.com/grootle/muteAIMP.git
    cd muteAIMP
    
  2. Create a Virtual Environment (Optional):

    python -m venv venv
    source venv/Scripts/activate  # On Windows: venv\Scripts\activate
    
  3. Install Dependencies:

    pip install -r requirements.txt
    

    If you do not have a requirements.txt, you can install the packages individually:

    pip install pyaimp pycaw
    

Usage

  1. Ensure AIMP is Installed:
    Make sure AIMP is installed on your system and that the executable name is AIMP.exe.

  2. Run the Script:

    python main.py
    

    The script will register for audio session notifications on your system. It will monitor the audio sessions and automatically pause AIMP if any other session becomes active, resuming playback when they become inactive.

  3. Logging:
    The console output will display debugging messages, such as active session changes and AIMP control actions (pause/resume).

Customization

  • AIMP Executable Name:
    If your AIMP executable has a different name, update the AIMP_EXE constant in main.py.

  • Polling Interval:
    The script uses an infinite loop with a 1-second delay to keep running. Adjust time.sleep(1) in the main loop if you need a different interval.

Release files for muteaimp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for muteaimp 0.1.0
File Size Uploaded
muteaimp-0.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for muteaimp 0.1.0
File Interpreter ABI Platform
muteaimp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / muteaimp-0.1.0.tar.gz

Download URL muteaimp-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
255d5ce9bad63442ad6287062daa596eb4fd55db97ac70c0e1a354bdfb3f9a4a
BLAKE2b-256 checksum
How to use checksums
02bbb1e645b69daa39a7a5af1f91ebd8489a66d42e521585f2e44aa32f6276d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / muteaimp-0.1.0-py3-none-any.whl

Download URL muteaimp-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f83a4724dee71434200638453571cdef0a5a17b0c4782f06ae82ce90710d28b8
BLAKE2b-256 checksum
How to use checksums
27d018fb7af450740b58664a512a21cbba8c5348eed8c8af0a5d72c89e134b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page