flickerleap / sox-php
A PHP Wrapper for SoundExchange (or SoX).
This package is not auto-updated.
Last update: 2024-11-23 00:30:51 UTC
README
What you need to manipulate audio in PHP
Requirements
-
PHP 5
-
sox installed on your server http://sox.sourceforge.net/ Linux (Ubuntu): sudo apt-get install sox Max OS X: sudo port install sox
Optional
- 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.