def _apply_sox_effects()

in augment/effects.py [0:0]


    def _apply_sox_effects(chain: List[SoxEffect],
                           input_tensor: torch.Tensor,
                           src_info: Dict,
                           target_info: Dict) -> Tuple[torch.Tensor, int]:
        instantiated_chain = [x.instantiate() for x in chain]
        sox_chain = _PyEffectChain()
        for effect_name, effect_args in instantiated_chain:
            sox_chain.add_effect(effect_name, effect_args)

        out, sr = sox_chain.apply_flow_effects(input_tensor,
                                          src_info,
                                          target_info)
        return out, sr