'torchaudio.sox_effects.sox_effects.apply_effects_file requires sox

I have installed sox using pip command, but it says that "torchaudio.sox_effects.sox_effects.apply_effects_file requires sox". Maybe I should install other additional libraries or what could you recommend? (p.s. I am working with torchaudio.) But can't run the code:

def _get_sample(path, resample=None):
    effects = [
        ["remix", "1"]
    ]
    if resample:
        effects.extend([
            ["lowpass", f"{resample // 2}"],
            ["rate", f'{resample}'],
        ])
    return torchaudio.sox_effects.apply_effects_file(path, effects=effects)```


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source