How to convert WAV files of some frequency to 44100 Hertz?

37,958

Solution 1

With ffmpeg:

ffmpeg -i input.wav -ar 44100 output.wav

There's really no need to convert to MP3 as an intermediate format.

Solution 2

Using SoX:

sox -S input.wav output.wav rate -L -s 44100

If you are making Red-Book Audio CDs use this command:

sox -S input.wav output.wav channels 2 rate -L -s 44100

Solution 3

You can have a look at Audacity (http://audacity.sourceforge.net/).

It's a simple audio editing software which will allow you to change this rate.

  • Import your file in audacity (File -> Open)
  • At the head of the track, clicking the arrow (on top of mute button) will open a menu, in which you can set the rate to whatever you need.
  • Then export it (File -> Export), and select your format. Select Other uncompressed files if you need 24 or 32bits WAV, the Options button will allow you to set it.
Share:
37,958

Related videos on Youtube

Jacklynn
Author by

Jacklynn

Updated on September 18, 2022

Comments

  • Jacklynn
    Jacklynn almost 2 years

    I'm using Source Filmmaker, and need to convert an audio file I have to 44100 Hertz, otherwise SFM will not accept it.

    I believe the frequency of the file is less than 44100 Hertz, and therefore will increase in size as a result of conversion (it's a sound file from CNC RA2, if that's relevant). I would like to convert the file directly, so as to reduce quality loss, and converting to an MP3 and back is a last resort.

  • fixer1234
    fixer1234 about 6 years
    Franck, this seems pretty similar to Levans' answer.
  • Franck Dernoncourt
    Franck Dernoncourt about 6 years
    @fixer1234 Levans' answer points to a different menu option, which in Audacity 2.2.2 will slow down the audio file.
  • kayleeFrye_onDeck
    kayleeFrye_onDeck almost 6 years
    Yeah. I tried all these solutions and ended up needing to use SoX