The first command I am using works perfectly:
Code: Select all
$norm = `/usr/bin/sox $inputfile -e stat -v 2>&1`;Now, after I get the correct value, I want to actually increase the gain, so I use:
Code: Select all
$result = `/usr/bin/sox -v $norm $inputfile $outputfile 2>&1`;sh: line 1: /var/lib/asterisk/sounds/sphinx_1140504120.117.wav: cannot execute binary file
This has been driving me nuts for over a day, and I just can't think of a solution. I have changed php.ini so that all of the safe mode stuff is off.
Does anyone have any ideas?
Many thanks.