
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
Audiomentations is a Python library for audio data augmentation, built to be fast and easy to use - its API is inspired by albumentations. It's useful for making audio deep learning models work well in the real world, not just in the lab. Audiomentations runs on CPU, supports mono audio and multichannel audio and integrates well in training pipelines, such as those built with TensorFlow/Keras or PyTorch. It has helped users achieve world-class results in Kaggle competitions and is trusted by companies building next-generation audio products with AI.
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/
Mp3Compression
25-300% faster (depending on hardware, audio properties like duration and number of channels and various params, like bitrate) with the new backend="fast-mp3-augment"
(now default). The extra dependency for this is fast-mp3-augment, which pulls a few useful tricks for faster execution.Limiter
30% faster and easier to install (extra dependency is now numpy-audio-limiter instead of cylimiter). The Limiter
behavior has not changed, although there are minor numerical differences.PitchShift
and TimeStretch
properlyFor 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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.