KeepAlive Scripts
Prevent Bluetooth speakers from turning off due to inactivity
Overview
This repository includes two Python scripts designed to keep Bluetooth speakers active by sending inaudible sounds at regular intervals:
keepalive.py: A basic Python script for Windows, macOS, and Linux.
keepalive_win.py: An enhanced version for Windows with system tray functionality.
Installation Guide
Windows
Download and install Python from the official website.
Open the command prompt and verify the installation by running python --version.
Clone or download this repository to your desired location.
Navigate to the project directory in the command prompt.
Run the script using the command python keepalive.py for keepalive.py or python keepalive_win.py for keepalive_win.py.
macOS
macOS usually comes with Python pre-installed. Open the Terminal application and verify the installation by running python --version.
Clone or download this repository to your desired location.
Open the Terminal and navigate to the project directory.
Run the script using the command python3 keepalive.py.
Linux
Linux distributions often have Python pre-installed. Open the Terminal application and verify the installation by running python --version.
Clone or download this repository to your desired location.
Open the Terminal and navigate to the project directory.
Run the script using the command python3 keepalive.py.
Scripts Description
keepalive.py
A basic Python script that keeps Bluetooth speakers active by sending inaudible sounds at regular intervals. It is compatible with Windows, macOS, and Linux.
keepalive_win.py
An enhanced version of keepalive.py specifically for Windows, offering additional features:
Creates a system tray icon for easy access and control.
Provides an option to exit the script using the system tray icon.
Can be converted to a standalone executable using tools like PyInstaller.
Ensure you have Python installed on your system before running these scripts. Refer to the installation guide for platform-specific instructions.
Feel free to explore and utilize these scripts to prevent your Bluetooth speakers from going inactive. For Windows users, the enhanced keepalive_win.py provides a more user-friendly experience with the system tray icon and exit functionality.
Please note that these scripts are provided as-is, and any usage or modification is at your own discretion. For any questions or issues, please refer to the repository's issue tracker. Enjoy uninterrupted audio experience with your Bluetooth speakers!