HumbleLearner
HumbleLearner

Reputation: 103

How to remove a frequency range from an audio file using SoX command?

I want to remove a certain frequency range from an audio file which is uploaded to the server. I learnt that SoX command has such capabilities.

I couldn't find the exact way to accomplish this. Any help is most welcome.

Upvotes: 2

Views: 6586

Answers (2)

rileyberton
rileyberton

Reputation: 475

Check out the bandreject filter in sox. Something like:

sox -V your.wav out.wav bandreject 1600 20

Upvotes: 3

576i
576i

Reputation: 8352

The command you are looking for could be sinc.

As an example: to remove the 5k-10k range from a wave file, try

sox input.wav output.wav sinc 10k-5k

You might want to read the manual about the other parameter sinc offers to get the best qulaity result for your task.

Upvotes: 5

Related Questions