Skip to main content

Audio Normalizer for MP3 and WAV files

Project description

plot AudioNormalizer


This is a normalizer for mp3 and wav files. Its a final project for Havard CS50P.

The approach in this program to normalize audio differs in comparison to most other programs that implement this task. Most normalizers amplify an audio signal until the highest transient reaches 0 dB. The downside of this approach is that the audio signal can only be amplified based on a single maximum transient. In other words, the whole normalizing process depends on one transient, which is inefficient.

This program, however, doesn't depend on a single transient. It rather splits the original signal into four separate signals (left positive, left negative, right positive, and right negative). Then it uses an algorithm that finds several transients that exceed a calculated value based on the audio file's duration and actual volume. For each split signal, a copy is being created, a dummy signal. In the dummy signals, the found transients are turned into the value of zero. The next task is to find the new maximum transient in each modified dummy signal like any other simple normalizer. The new maximum value is then saved for the final amplification.

At this stage, the program finds all amplitudes in the original split signals where the previously found transients are sitting. The split audio signals are then amplified based on the new maximum transient. All amplitudes that exceed (clip) above 0 dB are lowered to 0 dB without manipulating the original signal except for the volume.

Finally, all the amplified split signals are merged together and are saved as the original file name and type. All the ID3 tags, including the album cover, are also maintained in the new normalized file.

As a result, the user gets an audiofile normalized to 0 dB without losing noticeable dynamic range or the overall audio quality.

Installation

pip install audio_normalizer

Usage

import audio_normalizer

audio_normalizer.open_window()

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

audio_normalizer-1.3.1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

audio_normalizer-1.3.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file audio_normalizer-1.3.1.tar.gz.

File metadata

  • Download URL: audio_normalizer-1.3.1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for audio_normalizer-1.3.1.tar.gz
Algorithm Hash digest
SHA256 9201a85625cfc3d89c156ecbca816ec011bbb680761837ec7d0117ec44c82925
MD5 e15f71a615ca4c3e23de2038eaf5df81
BLAKE2b-256 621d6e7752d4bedce0beedb65d1fd49c903bf3edbe85b26c660f0e691cf119bb

See more details on using hashes here.

File details

Details for the file audio_normalizer-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for audio_normalizer-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4e583a3fce05b31907bfac506167d8c39555abac5dfa43f5fc69d372fa2a2d9
MD5 d3a12b611700792e41e8c78db744fbec
BLAKE2b-256 cbc50f58face520ea0337ddb4acfb3f3619f93ddb59de2e20fd5481c6769d0e7

See more details on using hashes here.

Supported by

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