Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.13 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.13 KB

torchaudio: an audio library for PyTorch

Dependencies

  • libsox v14.3.2 or above

Quick install on OSX (Homebrew):

brew install sox

Linux (Ubuntu):

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

Installation

pip install cffi
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/