All Projects β†’ SuperKogito β†’ pydiogment

SuperKogito / pydiogment

Licence: BSD-3-Clause License
πŸ“£ Python library for audio augmentation

Programming Languages

python
139335 projects - #7 most used programming language
TeX
3793 projects
Makefile
30231 projects

Projects that are alternatives of or similar to pydiogment

Audio cat dog classification
Classification of WAV files from cats and dogs
Stars: ✭ 16 (-75%)
Mutual labels:  sound, audio-processing
Sound-based-bird-species-detection
Sound-based Bird Classification - using AI, acoustics and ornithology to classify birds in the environment, an environmental awareness project (Web Application, Flask, Python)
Stars: ✭ 56 (-12.5%)
Mutual labels:  sound, audio-processing
gensound
Pythonic audio processing and generation framework
Stars: ✭ 69 (+7.81%)
Mutual labels:  sound, audio-processing
Spectrographic
Turn an image into sound whose spectrogram looks like the image.
Stars: ✭ 147 (+129.69%)
Mutual labels:  sound, audio-processing
torch-pitch-shift
Pitch-shift audio clips quickly with PyTorch (CUDA supported)! Additional utilities for searching efficient transformations are included.
Stars: ✭ 70 (+9.38%)
Mutual labels:  sound-processing, augmentation
Img Encode
Encode an image to sound and view it as a spectrogram - turn your images into music
Stars: ✭ 157 (+145.31%)
Mutual labels:  sound, audio-processing
WereSoCool
A language for composing microtonal music built in Rust. Make cool sounds. Impress your friends/pets/plants.
Stars: ✭ 41 (-35.94%)
Mutual labels:  sound, sound-processing
sonopy
A simple audio feature extraction library
Stars: ✭ 72 (+12.5%)
Mutual labels:  sound, audio-processing
soundtransform
Android & Pure Java library for sound manipulation
Stars: ✭ 42 (-34.37%)
Mutual labels:  sound, sound-processing
UnitySoundManager
Sound manager with 3 tracks, language system, pooling system, Fade in/out effects, EventTrigger system and more.
Stars: ✭ 55 (-14.06%)
Mutual labels:  sound, audio-processing
Linux Audio Adjustments
Audio Tweaks for Debian Based RPi
Stars: ✭ 140 (+118.75%)
Mutual labels:  sound, audio-processing
RTspice
A real-time netlist based audio circuit plugin
Stars: ✭ 51 (-20.31%)
Mutual labels:  sound-processing, audio-processing
Audiomentations
A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
Stars: ✭ 439 (+585.94%)
Mutual labels:  sound, augmentation
Torch Audiomentations
Fast audio data augmentation in PyTorch. Inspired by audiomentations. Useful for deep learning.
Stars: ✭ 164 (+156.25%)
Mutual labels:  sound, augmentation
Triton
🐳 Scripps Whale Acoustics Lab 🌎 Scripps Acoustic Ecology Lab - Triton with remoras in development
Stars: ✭ 25 (-60.94%)
Mutual labels:  sound, audio-processing
pedalevite
PΓ©dale Vite β€” DIY multi-FX pedalboard for guitar/bass/etc.
Stars: ✭ 68 (+6.25%)
Mutual labels:  audio-processing, audio-effects
sonipy
Sonification tool for turning scatter plots into perceptually uniform sound files for science and science access.
Stars: ✭ 20 (-68.75%)
Mutual labels:  sound, sound-processing
looking-to-listen-at-cocktail-party
Looking to listen at cocktail party
Stars: ✭ 33 (-48.44%)
Mutual labels:  audio-processing
MrPlayer
This is Mp3 Player made on python
Stars: ✭ 23 (-64.06%)
Mutual labels:  sound
DataAugmentationNMT
Data Augmentation for Neural Machine Translation
Stars: ✭ 26 (-59.37%)
Mutual labels:  augmentation

πŸ”” Pydiogment

Build Status Build status Documentation Status License Python Coverage Status Coverage Status CodeFactor

Pydiogment aims to simplify audio augmentation. It generates multiple audio files based on a starting mono audio file. The library can generates files with higher speed, slower, and different tones etc.

πŸ“₯ Installation

Dependencies

Pydiogment requires:

On Linux

On Linux you can use the following commands to get the libraries:

  • Numpy: pip install numpy
  • Scipy: pip install scipy
  • FFmpeg: sudo apt install ffmpeg

On Windows

On Windows you can use the following installation binaries:

On MacOS

On MacOs, use homebrew to install the packages:

  • Numpy: brew install numpy --with-python3
  • Scipy: You need to first install a compilation tool like Gfortran using homebrew brew install gfortran when it's done, install Scipy pip install scipy for more information and guidelines you can check this link: https://github.com/scipy/scipy/blob/master/INSTALL.rst.txt#mac-os-x
  • FFmpeg: brew install ffmpeg

Installation

If you already have a working installation of NumPy and SciPy , you can simply install Pydiogment using pip:

pip install pydiogment

To update an existing version of Pydiogment, use:

pip install -U pydiogment

πŸ’‘ How to use

  • Amplitude related augmentation

    • Apply a fade in and fade out effect

      from pydiogment.auga import fade_in_and_out
      
      test_file = "path/test.wav"
      fade_in_and_out(test_file)
    • Apply gain to file

      from pydiogment.auga import apply_gain
      
      test_file = "path/test.wav"
      apply_gain(test_file, -100)
      apply_gain(test_file, -50)
    • Add Random Gaussian Noise based on SNR to file

      from pydiogment.auga import add_noise
      
      test_file = "path/test.wav"
      add_noise(test_file, 10)
  • Frequency related augmentation

    • Change file tone

      from pydiogment.augf import change_tone
      
      test_file = "path/test.wav"
      change_tone(test_file, 0.9)
      change_tone(test_file, 1.1)
  • Time related augmentation

    • Slow-down/ speed-up file

      from pydiogment.augt import slowdown, speed
      
      test_file = "path/test.wav"
      slowdown(test_file, 0.8)
      speed(test_file, 1.2)
    • Apply random cropping to the file

      from pydiogment.augt import random_cropping
      
      test_file = "path/test.wav"
      random_cropping(test_file, 1)
    • Change shift data on the time axis in a certain direction

      from pydiogment.augt import shift_time
      
      test_file = "path/test.wav"
      shift_time(test_file, 1, "right")
      shift_time(test_file, 1, "left")
  • Audio files format

This library currently supports mono WAV files only.

πŸ“‘ Documentation

A thorough documentation of the library is available under pydiogment.readthedocs.io.

πŸ‘· Contributing and bugs report

Contributions are welcome and encouraged. To learn more about how to contribute to Pydiogment please refer to the Contributing guidelines

To report bugs, request a feature or just ask for help you can refer to the issues section. Before reporting a bug please make sure it is not addressed by an older issue and make sure to add your operating system type, its version number and the versions of the dependencies used.

πŸŽ‰ Acknowledgment and credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].