Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
A Python library for audio data augmentation. Inspired by albumentations. Useful for deep learning. Runs on CPU. Supports mono audio and multichannel audio. Can be integrated in training pipelines in e.g. Tensorflow/Keras or Pytorch. Has helped people get world-class results in Kaggle competitions. Is used by companies making next-generation audio products.
Need a Pytorch-specific alternative with GPU support? Check out torch-audiomentations!
pip install audiomentations
from audiomentations import Compose, AddGaussianNoise, TimeStretch, PitchShift, Shift
import numpy as np
augment = Compose([
AddGaussianNoise(min_amplitude=0.001, max_amplitude=0.015, p=0.5),
TimeStretch(min_rate=0.8, max_rate=1.25, p=0.5),
PitchShift(min_semitones=-4, max_semitones=4, p=0.5),
Shift(p=0.5),
])
# Generate 2 seconds of dummy audio for the sake of example
samples = np.random.uniform(low=-0.2, high=0.2, size=(32000,)).astype(np.float32)
# Augment/transform/perturb the audio data
augmented_samples = augment(samples=samples, sample_rate=16000)
The API documentation, along with guides, example code, illustrations and example sounds, is available at https://iver56.github.io/audiomentations/
AddGaussianSNR
, GainTransition
, LoudnessNormalization
and AddShortNoises
Gain
, AddBackgroundNoises
, AddGaussianSNR
, GainTransition
, LoudnessNormalization
and AddShortNoises
AirAbsorption
often chose the wrong humidity bucketcrossfade_duration
and min_part_duration
in RepeatPart
max_absolute_rms_db
in AddBackgroundNoises
. It was incorrectly set to -45.0, but is now -15.0. This bug was introduced in 0.31.0.AddShortNoises
and AirAbsorption
AddShortNoises
sometimes raised a ValueError
because of an empty array. This bug was introduced in 0.36.1.For the full changelog, including older versions, see https://iver56.github.io/audiomentations/changelog/
Thanks to Nomono for backing audiomentations.
Thanks to all contributors who help improving audiomentations.
FAQs
A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
We found that audiomentations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.