# Lame MP3 与 Wav 互转 ## 安装 sudo apt install lame ## 使用 Fixed bit rate 128kbps encoding: lame sample.wav sample.mp3 Decode: lame sample.mp3 sample.wav --decode Fixed bit rate jstereo 128kbps encoding, high quality (recommended): lame -h sample.wav sample.mp3 Average bit rate 112kbps encoding: lame --abr 112 sample.wav sample.mp3 Fast encode, low quality (no psycho-acoustics): lame -f sample.wav sample.mp3 Variable bitrate (use -V n to adjust quality/filesize): lame -h -V 6 sample.wav sample.mp3 Streaming mono 22.05 kHz raw pcm, 24 kbps output: cat inputfile | lame -r -m m -b 24 -s 22.05 -- > output Streaming mono 44.1 kHz raw pcm, with downsampling to 22.05 kHz: cat inputfile | lame -r -m m -b 24 --resample 22.05 -- > output