Installation

This library depends on libsndfile to work, so you must install their headers before:

  • Ubuntu/Debian: sudo apt-get install libsndfile1-dev

  • macOS/Homebrew: brew install libsndfile

  • Arch Linux: sudo pacman -S libsndfile

  • Fedora: sudo dnf install libsndfile-devel

  • Windows: Download and install an official precompiled binary.

After that, you only need to install using PIP as usually:

pip install waves

You can pass the following extras to the installation:

  • play: you will can listen the sound using sound.play using pygame.

  • plot: you will can paint the spectrum of sounds as figures in matplotlib canvas using sound.plot.

pip install waves[play,plot]