Re: Audio stream piping minimal overhead

From: Date: Sun, 08 Mar 2009 05:50:51 +0000
Subject: Re: Audio stream piping minimal overhead
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-289584@lists.php.net to get a copy of this message
On Sat, Mar 7, 2009 at 10:35 PM, Richard Lynch <ceo@l-i-e.com> wrote: > I'm interfacing PHP with an Asterisk server, and would like to pipe > audio into PHP, through sox, and back out, in real-time, thus with > *minimal* overhead in PHP. > > Any suggestions on what would be the best architecture? not sure if its what youre looking for, but a quick google turned up an interesting class on PHP Classes. The audio_streamer class. heres what they have in the example file, which will stream it to the browser as i understand. <?php include 'class.audio_streamer.php'; $sound = new audio_streamer('./test.mp3'); $sound->save(); ?> and heres a bit of the description, "*This class implements an alternative that takes advantage of pipes between programs that are available under Unix, Linux and other systems, to execute external audio manipulation programs. This way, the resulting audio files can be streamed directly to the user browser without any delays, and without taking too much server memory or any disk space." *-nathan

« previous php.general (#289584) next »