Anwarvic
Anwarvic

Reputation: 12992

Change number of audio channels using sox

As the title shows, I have an audio file and I want to change the number of channels to any number... How can I do that knowing that the number of channels could be 8. It doesn't have to be either mono or stereo.

Some suggested using sox, but it's ok if you know any other tool

Upvotes: 6

Views: 6783

Answers (1)

user11900231
user11900231

Reputation:

You can use this command:

sox in.wav -c 1 out.wav 

where:

  • in.wav is the input audio file.
  • out.wav is the output audio file.
  • -c is the flag determining the number of channels in the output file

Upvotes: 10

Related Questions