alderpaw / audio

Data manipulation and transformation for audio signal processing, powered by PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

torchaudio: an audio library for PyTorch

Build Status

Dependencies

  • pytorch (nightly version needed for development)
  • libsox v14.3.2 or above
  • [optional] vesis84/kaldi-io-for-python commit cb46cb1f44318a5d04d4941cf39084c5b021241e or above

Quick install on OSX (Homebrew):

brew install sox

Linux (Ubuntu):

sudo apt-get install sox libsox-dev libsox-fmt-all

Anaconda

conda install -c conda-forge sox

Installation

# Linux
python setup.py install

# OSX
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install

Quick Usage

import torchaudio
sound, sample_rate = torchaudio.load('foo.mp3')
torchaudio.save('foo_save.mp3', sound, sample_rate) # saves tensor to file

API Reference

API Reference is located here: http://pytorch.org/audio/

About

Data manipulation and transformation for audio signal processing, powered by PyTorch

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 89.4%Language:C++ 9.4%Language:Shell 1.2%