Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hehl2
Torchaudio
Commits
9cd126a9
"vscode:/vscode.git/clone" did not exist on "9729ca54d929d8a9108ad69defce750021cc3b3a"
Unverified
Commit
9cd126a9
authored
Apr 24, 2020
by
Vincent QB
Committed by
GitHub
Apr 24, 2020
Browse files
do not offer sox as a backend in windows. (#579)
parent
a47dca4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
torchaudio/_backend.py
torchaudio/_backend.py
+6
-2
No files found.
torchaudio/_backend.py
View file @
9cd126a9
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment