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.
- FFmpeg: Required for audio decoding.
brew install ffmpeg
- Python 3.14+: The script is compatible with the latest Python versions.
-
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.
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 *.mp3If 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.