• Home
  • Downloads
  • Contact Us
  • Report Broken Link
Sunday, May 11, 2025
  • Login
lessons4you.info
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
Lessons4you.info
No Result
View All Result

How to Install .rpm Package in Ubuntu/Debian

Grub 2 Error: Invalid Signature press any key to continue…

Convert an MP3 File to WAV Format Linux (Debian/ubuntu/CentOS)

by
December 11, 2021
in Uncategorized
Reading Time: 1 min read
A A
Share on FacebookShare on Twitter

There are lots of tools that to convert a MP3 file into WAV format. I recommend mpg321 which is a free command-line mp3 player, which uses the mad audio decoding library. Install mpg321 or mpg123 Type the following command under Debian / Ubuntu Linux, Use:

1
2
3
 
sudo apt-get install mpg321
 

OR

1
2
3
 
sudo apt-get install mpg123
 

I recommend using mpg123 as it is updated frequently. Install mpg123 under CentOS / RHEL / Fedora Linux Turn on rpmforge repo and type the following command:

1
2
3
 
yum install mpg123
 

Convert an MP3 to WAV The -w option will convert an .mp3 file to .wav file. The syntax is:

1
2
3
 
mpg123 -w output.wav input.mp3
 

OR

1
2
3
 
mpg321 -w output.wav input.mp3
 

A Sample Shell Script Helper Function Add the following to your ~/.bashrc startup file: Open your .bashrc file and put this code at the end of the file.

1
2
3
 
$ vi ~/.bashrc
 

1
2
3
4
5
6
7
8
9
10
11
 
mp3towav(){
        [[ $# -eq 0 ]] && { echo "mp3wav mp3file"; exit 1; }
        for i in "$@"
        do
                # create .wav file name
                local out="${i%/*}.wav"
                [[ -f "$i" ]] && { echo -n "Processing ${i}..."; mpg123 -w "`echo $out|sed -e s/\.mp3//`" "$i" &>/dev/null  && echo "done." || echo "process failed."; }
        done
}
 

Then execute the .bashrc file using source command to make changes.

1
2
3
 
$ source ~/.bashrc
 

Use it as follows:

1
2
3
 
mp3towav *.mp3
 

Previous Post

How to Install .rpm Package in Ubuntu/Debian

Next Post

Grub 2 Error: Invalid Signature press any key to continue…

Related Posts

How To Install The TWRP Recovery on Xiaomi Redmi 1s
Uncategorized

How To Install The TWRP Recovery on Xiaomi Redmi 1s

May 14, 2022
MIUI Collection Of Gapps (2.3.x – 5.0.x)
Uncategorized

MIUI Collection Of Gapps (2.3.x – 5.0.x)

May 14, 2022
Download Android 5.1.x Lollipop PA Gapps
Uncategorized

Download Android 5.1.x Lollipop PA Gapps

May 15, 2022
Download gapps for Android 5.1 Lollipop Cyanogemod 12.1
Uncategorized

Download gapps for Android 5.1 Lollipop Cyanogemod 12.1

May 14, 2022
Reddit AMA with OxygenOS Team OnePlus
Uncategorized

Reddit AMA with OxygenOS Team OnePlus

May 14, 2022
How to Remove Adobe Updater from OS X Menu Bar?
Uncategorized

How to Remove Adobe Updater from OS X Menu Bar?

July 19, 2023
Next Post

Grub 2 Error: Invalid Signature press any key to continue…

  • Home
  • Downloads
  • Contact Us
  • Report Broken Link

© 2022 lessons4you.info

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link

© 2022 lessons4you.info