README.md

SOXE
====

[![Build Status](https://img.shields.io/travis/altenwald/soxe/master.svg)](https://travis-ci.org/altenwald/soxe)
[![Codecov](https://img.shields.io/codecov/c/github/altenwald/soxe.svg)](https://codecov.io/gh/altenwald/soxe)
[![License: LGPL 2.1](https://img.shields.io/github/license/altenwald/soxe.svg)](https://raw.githubusercontent.com/altenwald/soxe/master/COPYING)
[![Hex](https://img.shields.io/hexpm/v/soxe.svg)](https://hex.pm/packages/soxe)

Sox Erlang library to (firstly and mainly) convert files between formats. In a very early version this library only do conversions.

```erlang
soxe:start(),
soxe:convert("audio.wav", "audio.mp3").
```

Or to get information about the file:

```erlang
soxe:info("audio.mp3").
#soxe_info{filename = "audio.mp3",bitrate = 44100,
           channels = 2,encoding_text = "MPEG audio",encoding_id = 22,
           audio_length = 36170380,duration = 410}
```

NOTE: the sox library is required and all the codecs you want to use for conversion (for example, mp3lame, ffmpeg, ...).