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
OpenDAS
Torchaudio
Commits
b457cb71
Unverified
Commit
b457cb71
authored
Apr 30, 2020
by
Artyom Astafurov
Committed by
GitHub
Apr 30, 2020
Browse files
update audio samples for vad testing (#599)
parent
2ebbbf51
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
4 deletions
+4
-4
test/assets/vad-go-mono-32000.wav
test/assets/vad-go-mono-32000.wav
+0
-0
test/assets/vad-go-stereo-44100.wav
test/assets/vad-go-stereo-44100.wav
+0
-0
test/assets/vad-hello-mono-32000.wav
test/assets/vad-hello-mono-32000.wav
+0
-0
test/assets/vad-hello-stereo-44100.wav
test/assets/vad-hello-stereo-44100.wav
+0
-0
test/test_batch_consistency.py
test/test_batch_consistency.py
+1
-1
test/test_sox_effects.py
test/test_sox_effects.py
+2
-2
test/test_torchscript_consistency.py
test/test_torchscript_consistency.py
+1
-1
No files found.
test/assets/vad-go-mono-32000.wav
0 → 100644
View file @
b457cb71
File added
test/assets/vad-go-stereo-44100.wav
0 → 100644
View file @
b457cb71
File added
test/assets/vad-hello-mono-32000.wav
deleted
100644 → 0
View file @
2ebbbf51
File deleted
test/assets/vad-hello-stereo-44100.wav
deleted
100644 → 0
View file @
2ebbbf51
File deleted
test/test_batch_consistency.py
View file @
b457cb71
...
...
@@ -84,7 +84,7 @@ class TestFunctional(unittest.TestCase):
_test_batch
(
F
.
sliding_window_cmn
,
waveform
,
center
=
False
,
norm_vars
=
False
)
def
test_vad
(
self
):
filepath
=
common_utils
.
get_asset_path
(
"vad-
hell
o-mono-32000.wav"
)
filepath
=
common_utils
.
get_asset_path
(
"vad-
g
o-mono-32000.wav"
)
waveform
,
sample_rate
=
torchaudio
.
load
(
filepath
)
_test_batch
(
F
.
vad
,
waveform
,
sample_rate
=
sample_rate
)
...
...
test/test_sox_effects.py
View file @
b457cb71
...
...
@@ -251,8 +251,8 @@ class Test_SoxEffectsChain(unittest.TestCase):
def
test_vad
(
self
):
sample_files
=
[
common_utils
.
get_asset_path
(
"vad-
hell
o-stereo-44100.wav"
),
common_utils
.
get_asset_path
(
"vad-
hell
o-mono-32000.wav"
)
common_utils
.
get_asset_path
(
"vad-
g
o-stereo-44100.wav"
),
common_utils
.
get_asset_path
(
"vad-
g
o-mono-32000.wav"
)
]
for
sample_file
in
sample_files
:
...
...
test/test_torchscript_consistency.py
View file @
b457cb71
...
...
@@ -558,7 +558,7 @@ class _TransformsTestMixin:
self
.
_assert_consistency
(
T
.
SlidingWindowCmn
(),
tensor
)
def
test_Vad
(
self
):
filepath
=
common_utils
.
get_asset_path
(
"vad-
hell
o-mono-32000.wav"
)
filepath
=
common_utils
.
get_asset_path
(
"vad-
g
o-mono-32000.wav"
)
waveform
,
sample_rate
=
torchaudio
.
load
(
filepath
)
self
.
_assert_consistency
(
T
.
Vad
(
sample_rate
=
sample_rate
),
waveform
)
...
...
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