"vscode:/vscode.git/clone" did not exist on "9729ca54d929d8a9108ad69defce750021cc3b3a"
Unverified Commit 9cd126a9 authored by Vincent QB's avatar Vincent QB Committed by GitHub
Browse files

do not offer sox as a backend in windows. (#579)

parent a47dca4f
......@@ -8,8 +8,12 @@ from torch import Tensor
from . import _soundfile_backend, _sox_backend
_audio_backend = "soundfile" if platform.system() == "Windows" else "sox"
_audio_backends = {"sox": _sox_backend, "soundfile": _soundfile_backend}
if platform.system() == "Windows":
_audio_backend = "soundfile"
_audio_backends = {"soundfile": _soundfile_backend}
else:
_audio_backend = "sox"
_audio_backends = {"sox": _sox_backend, "soundfile": _soundfile_backend}
def set_audio_backend(backend: str) -> None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment