Verify that MP3 files play correctly in both the left and right earbuds (channel silence, RMS, stereo balance).
Project description
MP3-Stereo-Analyzer
MP3 Earbud Compatibility Analyzer
A Python tool to verify if your MP3 files are correctly formatted to play in both the left and right earbuds. It checks for channel silence, average volume (RMS), and stereo balance.
Prerequisites
- FFmpeg: Required for audio decoding.
brew install ffmpeg
- Python 3.14+: The script is compatible with the latest Python versions.
Setup Instructions
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Upgrade pip and install dependencies:
pip install --upgrade pip pip install audioop-lts pydub
Note:
audioop-ltsis required for Python 3.13 and newer.
Usage
Run the script by passing one or multiple MP3 files as arguments:
# Single file
python3 mp3-analyzer.py your_file.mp3
# Multiple files
python3 mp3-analyzer.py file1.mp3 file2.mp3
# All MP3s in a folder
python3 mp3-analyzer.py *.mp3
Troubleshooting
If the script returns a PASS but you still hear only one ear on your iPhone, check:
- iOS Settings: Accessibility > Audio/Visual > Balance (Ensure it's 0.00).
- Hardware: Ensure your Lightning/USB-C adapter or Bluetooth buds are fully paired and clean.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mp3_stereo_analyzer-1.0.0.tar.gz.
File metadata
- Download URL: mp3_stereo_analyzer-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390863be50ea7c3c08bd862d200448e3ad43e691d5175374ec203a19a86907a5
|
|
| MD5 |
faf257d12c17bbd4002ffc576d8a18fa
|
|
| BLAKE2b-256 |
f9bc548db7d340b0fa018f0596051c1ecc2f9e766f41e0611cb0dc5d9b4c0e13
|
File details
Details for the file mp3_stereo_analyzer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mp3_stereo_analyzer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90432090f43ba27969a34447a4e53bf1b4870c3983b1394ab43773dbc581acdd
|
|
| MD5 |
4865aca25d8852f41fc0ec9dd8cb13ef
|
|
| BLAKE2b-256 |
3e9323c2c09b5bad5a842538d9fb6c8177f023202a1b087a24c93087972743b7
|