torchaudio.set_audio_backend¶
- torchaudio.set_audio_backend(backend: Optional[str])[source]¶
DEPRECATED: Set the global backend.
This is a no-op when dispatcher mode is enabled.
- Parameters:
backend (str or None) – Name of the backend. One of
"sox_io"
or"soundfile"
based on availability of the system. IfNone
is provided the current backend is unassigned.
Warning
This function has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call.