Shortcuts

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. If None 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.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources