speechbrain.utils.torch_audio_backend module

Summary

Functions:

get_torchaudio_backend

Get the backend for torchaudio between soundfile and sox_io according to the os.

Reference

speechbrain.utils.torch_audio_backend.get_torchaudio_backend()[source]

Get the backend for torchaudio between soundfile and sox_io according to the os.

Allow users to use soundfile or sox_io according to their os.

Returns

The torchaudio backend to use.

Return type

str