Beispiel #1
0
 def test_list_effects(self):
     """`list_effects` returns the list of available effects"""
     effects = sox_utils.list_effects()
     # We cannot infer what effects are available, so only check some of them.
     assert 'highpass' in effects
     assert 'phaser' in effects
     assert 'gain' in effects
def effect_names() -> List[str]:
    """Gets list of valid sox effect names

    Returns: list[str]

    Example
        >>> EFFECT_NAMES = torchaudio.sox_effects.effect_names()
    """
    return list(list_effects().keys())
def effect_names() -> List[str]:
    """Gets list of valid sox effect names

    Returns:
        List[str]: list of available effect names.

    Example
        >>> torchaudio.sox_effects.effect_names()
        ['allpass', 'band', 'bandpass', ... ]
    """
    return list(list_effects().keys())