[asterisk-users] Normalize Voicemail Volume?
Daniel Hazelbaker
daniel at highdesertchurch.com
Fri Jun 26 09:59:56 CDT 2009
I use the following script to perform compression and normalization on
e-mailed voicemails. I put the script in as /usr/local/bin/sox and
pre-pend /usr/local/bin to the PATH before asterisk runs in the
startup script.
The values for the compressor are not scientific, I monkeyed with them
until I thought it sounded like a good volume, YMMV.
Daniel
#!/bin/sh
#
# $1 = -v
# $2 = number
# $3 = inFile
# $4 = outFile
#
REALSOX="/usr/bin/sox"
if [ "$1" != "-v" ]; then
$REALSOX $*
exit $?
fi
INFILE="$3"
OUTFILE="$4"
#
# Perform the gain adjustment.
#
$REALSOX "$INFILE" "$OUTFILE" compand 0.1,0.3
-60,-60,-30,-15,-20,-12,-4,-8,-2,-7 0 0 0.2
On Jun 26, 2009, at 7:44 AM, Adam Moffett wrote:
> We generally get our voicemails emailed to us from asterisk, but some
> people's messages are extraordinarily loud or quiet. I don't suppose
> there is any feature to even out the volume level is there?
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list