Skip to main content

Find out how loud that file is

Project description

pyLoudness
==========

.. image:: https://badge.fury.io/py/pyloudness.svg
:target: https://badge.fury.io/py/pyloudness


How loud is that file? Sounds simple, right? Check out
http://www.r128audio.com for information about loudness standards.

Usage
-----

Give pyLoudness an audio file and it will give you a dictionary.

::

import pyloudness
loudness_stats = pyloudness.get_loudness("test.wav")

Result:

::

{
'True Peak': {
'Peak': 0.4
},
'Loudness Range': {
'LRA': 8.4,
'Threshold': -39.8,
'LRA High': -16.9,
'LRA Low': -25.3
},
'Integrated Loudness': {
'I': -19.2,
'Threshold': -29.8
}
}

Prerequisities
~~~~~~~~~~~~~~

pyLoudness requires ffmpeg

::

sudo apt-get install ffmpeg

Installing
~~~~~~~~~~

::

pip install pyloudness

Miscellania
~~~~~~~~~~

::

ffmpeg -nostats -i file_location -filter_complex ebur128=peak=true -f null -

Authors
-------

- **Jason Rigden**

License
-------

This project is licensed under the MIT License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyloudness-1.1.2-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyloudness-1.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyloudness-1.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b2c574de40961db462519ab88af2fe7dbae2b3f6d6f656f95fe6ba209ceb8c9d
MD5 5c00cdc1ccdf5c34571468e7fcb8706d
BLAKE2b-256 022f3f2b3e3bc0c0ef282b1d19f7bc39a9fc8e10740c72608584968a1ce44a92

See more details on using hashes here.

Supported by

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