Converting mp3 to wav

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Douglas H Frederickson
Date:  
Subject: Converting mp3 to wav
How about something like this:

#!/bin/sh               
#               
ls *.mp3 | while read i
    do           
        o=$(echo "$i" | sed -e "s/mp3/wav/")
        mpg123 -b 10000 -s "$i" | sox -t raw -r 44100 -s -w -c2 - "$o"
    done           
## eof            


This script lists the mp3 files in the current directory, converts the
mp3 extention to wav using sed, and then does the conversion.

Doug

p.s. This is my first post. Great discussion group. Thanks!



On Mon, 2002-01-28 at 07:13, Anthony Hologounis wrote:
> Hello
>
> I have been using this script to convert my mp3's to wav so I burn my own
> cd's.
> #!/bin/bash
> # mp32wav
> mpg123 -b 10000 -s "$1" | sox -t raw -r 44100 -s -w -c2 - "$2"
>