- en: torchaudio.sox_effects id: totrans-0 prefs: - PREF_H1 type: TYPE_NORMAL zh: torchaudio.sox_effects - en: 原文:[https://pytorch.org/audio/stable/sox_effects.html](https://pytorch.org/audio/stable/sox_effects.html) id: totrans-1 prefs: - PREF_BQ type: TYPE_NORMAL zh: 原文:[https://pytorch.org/audio/stable/sox_effects.html](https://pytorch.org/audio/stable/sox_effects.html) - en: '## Applying effects[](#applying-effects "Permalink to this heading")' id: totrans-2 prefs: [] type: TYPE_NORMAL zh: '## 应用效果[](#applying-effects "跳转到本标题")' - en: Apply SoX effects chain on torch.Tensor or on file and load as torch.Tensor. id: totrans-3 prefs: [] type: TYPE_NORMAL zh: 在torch.Tensor上或文件上应用SoX效果链,并加载为torch.Tensor。 - en: '| [`apply_effects_tensor`](generated/torchaudio.sox_effects.apply_effects_tensor.html#torchaudio.sox_effects.apply_effects_tensor "torchaudio.sox_effects.apply_effects_tensor") | Apply sox effects to given Tensor |' id: totrans-4 prefs: [] type: TYPE_TB zh: '| [`apply_effects_tensor`](generated/torchaudio.sox_effects.apply_effects_tensor.html#torchaudio.sox_effects.apply_effects_tensor "torchaudio.sox_effects.apply_effects_tensor") | 对给定的Tensor应用SoX效果 |' - en: '| [`apply_effects_file`](generated/torchaudio.sox_effects.apply_effects_file.html#torchaudio.sox_effects.apply_effects_file "torchaudio.sox_effects.apply_effects_file") | Apply sox effects to the audio file and load the resulting data as Tensor |' id: totrans-5 prefs: [] type: TYPE_TB zh: '| [`apply_effects_file`](generated/torchaudio.sox_effects.apply_effects_file.html#torchaudio.sox_effects.apply_effects_file "torchaudio.sox_effects.apply_effects_file") | 对音频文件应用SoX效果,并将结果数据加载为Tensor |' - en: Utilities[](#utilities "Permalink to this heading") id: totrans-6 prefs: - PREF_H2 type: TYPE_NORMAL zh: 实用工具[](#utilities "跳转到本标题") - en: '| [`effect_names`](generated/torchaudio.sox_effects.effect_names.html#torchaudio.sox_effects.effect_names "torchaudio.sox_effects.effect_names") | Gets list of valid sox effect names |' id: totrans-7 prefs: [] type: TYPE_TB zh: '| [`effect_names`](generated/torchaudio.sox_effects.effect_names.html#torchaudio.sox_effects.effect_names "torchaudio.sox_effects.effect_names") | 获取有效的SoX效果名称列表 |'