I'm SURE you've got a good reason, but why are you wanting to generate a WAV
on demand? The loss in file quality occurs going from WAV > MP3, so then
later going back to WAV would only result in a bigger file size, with ZERO
benefit in audio quality.
Just asking :)
Justin
on 26/10/02 4:53 PM,
I've written a little script for VoiceXML applications to generate a WAV
from an MP3 on demand:
#file wavwrapper.php
header('Content-Type: audio/wav');
$filename = $_GET['filename'];
$mp3dir="/var/www/mp3s/";
$playercmd="/usr/local/bin/mpg123 -m -w - -q -4 --8bit";
passthru("$playercmd $mp3dir/
2 matches
Mail list logo