Skip to main content

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

  1. FFmpeg: Required for audio decoding.
    brew install ffmpeg
    
  2. Python 3.14+: The script is compatible with the latest Python versions.

Setup Instructions

  1. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
    
  2. Upgrade pip and install dependencies:

    pip install --upgrade pip
    pip install audioop-lts pydub
    

    Note: audioop-lts is 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:

  1. iOS Settings: Accessibility > Audio/Visual > Balance (Ensure it's 0.00).
  2. Hardware: Ensure your Lightning/USB-C adapter or Bluetooth buds are fully paired and clean.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mp3_stereo_analyzer-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mp3_stereo_analyzer-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for mp3_stereo_analyzer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 390863be50ea7c3c08bd862d200448e3ad43e691d5175374ec203a19a86907a5
MD5 faf257d12c17bbd4002ffc576d8a18fa
BLAKE2b-256 f9bc548db7d340b0fa018f0596051c1ecc2f9e766f41e0611cb0dc5d9b4c0e13

See more details on using hashes here.

File details

Details for the file mp3_stereo_analyzer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mp3_stereo_analyzer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90432090f43ba27969a34447a4e53bf1b4870c3983b1394ab43773dbc581acdd
MD5 4865aca25d8852f41fc0ec9dd8cb13ef
BLAKE2b-256 3e9323c2c09b5bad5a842538d9fb6c8177f023202a1b087a24c93087972743b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page