Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wiwikuan authored Sep 3, 2024
1 parent 356186d commit 5d6f65a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wav-to-mp3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# This script converts WAV files to MP3 files at 160kbps
for file in *.wav; do
[ -f "$file" ] || break # Break if no more wav files are found
ffmpeg -i "${file}" -codec:a libmp3lame -b:a 160k "${file%.wav}.mp3"
done

0 comments on commit 5d6f65a

Please sign in to comment.