flickerleap/sox-php

A PHP Wrapper for SoundExchange (or SoX).

1.0.0 2017-07-04 22:28 UTC

This package is not auto-updated.

Last update: 2024-05-10 22:07:15 UTC


README

What you need to manipulate audio in PHP

Requirements

  1. PHP 5

  2. sox installed on your server http://sox.sourceforge.net/ Linux (Ubuntu): sudo apt-get install sox Max OS X: sudo port install sox

Optional

  1. lame mp3 encoder http://lame.sourceforge.net/

What you get

SoundExchange PHP is an easy to use library which wraps common sox calls. To use SoundExchange include the SoundExchange.php src file in your website and make some calls to included functions. Use any of the static members to convert, trim, & normalize audio files. Some bundled convenience methods are also included, for instance the preview() method which creates a normalized short preview file of the supplied audio file.

For advanced users you can use the generic sox() call and supply your own commands. It is not recommended to use this function unless you are familiar with how to use sox on the command line.