speechbrain.utils.torch_audio_backend module

Library for checking the torchaudio backend.

Authors
  • Mirco Ravanelli 2021

Summary

Functions:

check_torchaudio_backend

Checks the torchaudio backend and sets it to soundfile if windows is detected.

try_parse_torchaudio_major_version

Tries parsing the torchaudio major version.

Reference

speechbrain.utils.torch_audio_backend.try_parse_torchaudio_major_version() int | None[source]

Tries parsing the torchaudio major version.

Return type:

The parsed major version, otherwise None.

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

Checks the torchaudio backend and sets it to soundfile if windows is detected.