<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wav on Michael’s Domain</title><link>https://jeltsch.org/en/tags/wav/</link><description>Recent content in Wav on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/wav/index.xml" rel="self" type="application/rss+xml"/><item><title>How to trim a wav file from the Linux command line</title><link>https://jeltsch.org/en/how_to_trim_a_wav_file_from_the_linux_command_line/</link><pubDate>Tue, 24 Oct 2006 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/how_to_trim_a_wav_file_from_the_linux_command_line/</guid><description>&lt;p&gt;&lt;code&gt;sox old.wav new.wav trim 0 4:07.0&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Using lame to create mp3s from wavs</title><link>https://jeltsch.org/en/using_lame_to_create_mp3s_from_wavs/</link><pubDate>Tue, 24 Oct 2006 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/using_lame_to_create_mp3s_from_wavs/</guid><description>&lt;p&gt;Using 
 &lt;a href="http://audacity.sourceforge.net/" target="_blank" rel="noopener noreferrer nofollow"&gt;Audacity&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 I converted one of the ripped WAVs into an MP3. However there was no possibility to batch convert WAV files. Thus I started to use lame from the command line. I created a shell script (encode.sh):&lt;code&gt;while [ $ -ge 1 ]; do infn=$1 outfn=&amp;quot;${infn%%.wav}.mp3&amp;quot; echo $outfn lame -v $infn $outfn shift 1done&lt;/code&gt; It does the batch converting:&lt;code&gt;encode.sh *.wav&lt;/code&gt; The -v switch cause lame to encode using variable bitrate. -h would do fixed bitrate at 128, for other bitrates use e.g. -b 160. The -V 0 switch uses variable bitrate encoding with highest quality, while -V uses the lowest quality.&lt;/p&gt;</description></item></channel></rss>