iver56 / audiomentations

A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
https://iver56.github.io/audiomentations/
MIT License
1.83k stars 187 forks source link

Add an Air Absorption "Simulator" #189

Closed mmxgn closed 2 years ago

mmxgn commented 2 years ago

What it says on the Tin:

A quick and dirty way to simulate air absorption (NOT DISTANCE or REFLECTIONS).

Basically uses the STFT to emulate a low pass filter with variable octave attenuation and the attenuation coefficients from pyroomacoustics.

codecov[bot] commented 2 years ago

Codecov Report

Merging #189 (496af7d) into master (106fe95) will increase coverage by 0.08%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #189      +/-   ##
==========================================
+ Coverage   97.26%   97.35%   +0.08%     
==========================================
  Files          40       41       +1     
  Lines        1573     1625      +52     
==========================================
+ Hits         1530     1582      +52     
  Misses         43       43              
Impacted Files Coverage Δ
audiomentations/__init__.py 100.00% <100.00%> (ø)
audiomentations/augmentations/air_absorption.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 106fe95...496af7d. Read the comment docs.