Changing sound volume or bitrate of mp3 files with lame

Last modified on July 24, 2026 • 1 min read • 119 words
Sometimes the recording level of mp3 files is very low.
Sometimes the recording level of mp3 files is very low. If I do some jogging next to a busy road, I cannot hear anything even when the sound volume is on the max. Therefore I have to increase the volume of the mp3 file. Using lame you can do it with the following script: #!/bin/bashwhile [ $# -ge 1 ]; doinfn=$1outfn="${infn%%.mp3}_3x.mp3"echo $outfnlame --mp3input -v --scale=3 $infn $outfnshift 1doneThe only problem is that filnames with blank spaces make this script to collapse. Have to figure out something else. Also the bitrate can be modified in this way:#!/bin/bashwhile [ $# -ge 1 ]; doinfn=$1outfn="${infn%%.mp3}_LQ.mp3"echo $outfnlame --mp3input -V 9 $infn $outfnshift 1done-V 9 is the lowest bitrate/quality -V 0 is the highest.