Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -12,11 +12,12 @@ task_categories:
|
|
12 |
Voice Activity Detection (VAD) Test Dataset
|
13 |
|
14 |
This dataset is based on the `test.clean` and `test.other` splits from the
|
15 |
-
librispeech_asr
|
|
|
16 |
|
17 |
- **speech**: Indicates presence of speech ([0, 1]), computed using a dynamic threshold method with background noise estimation and smoothing.
|
18 |
|
19 |
-
- **confidence**: A post-processing flag to correct transient dropouts in speech. It is set to 1 by default, but switches to 0 for up to ~0.1 seconds (3
|
20 |
|
21 |
The dataset has minimal background noise, making it suitable for mixing with
|
22 |
external noise samples to test VAD robustness.
|
@@ -28,17 +29,17 @@ A plot for an example showing audio samples and the `speech` feature.
|
|
28 |
|
29 |
<img src="assets/test_other_item_02.png" alt="Example from test.other"/>
|
30 |
|
31 |
-
The example below shows brief
|
32 |
-
short pauses.
|
33 |
-
feature offers a way to optionally ignore these
|
34 |
-
performance.
|
35 |
|
36 |
<img src="assets/test_clean_item_02.png" alt="Example from test.other"/>
|
37 |
|
38 |
# Example usage of dataset
|
39 |
|
40 |
-
The model under test must support processing a chunk size of 512 audio
|
41 |
-
at 16000 Hz generating a prediction for each `speech` feature.
|
42 |
|
43 |
```console
|
44 |
import datasets
|
@@ -50,17 +51,20 @@ dataset = datasets.load_dataset("guynich/librispeech_asr_test_vad")
|
|
50 |
audio = dataset["test.clean"][0]["audio"]["array"]
|
51 |
speech = dataset["test.clean"][0]["speech"]
|
52 |
|
53 |
-
# Compute
|
54 |
-
speech_probs =
|
55 |
|
56 |
-
# Add test code here
|
57 |
-
# In practice you would run this across the entire test split.
|
58 |
roc_auc = roc_auc_score(speech, speech_probs)
|
59 |
```
|
|
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
64 |
|
65 |
```console
|
66 |
confidence = dataset["test.clean"][0]["confidence"]
|
@@ -82,20 +86,23 @@ model with `test.clean` split.
|
|
82 |
|
83 |
<img src="assets/roc_test_clean.png" alt="Example from test.clean with Silero-VAD"/>
|
84 |
|
85 |
-
Precision values are increased when data is sliced by confidence values.
|
|
|
|
|
86 |
|
87 |
<img src="assets/roc_test_clean_exclude_low_confidence.png" alt="Example from test.clean with Silero-VAD"/>
|
88 |
|
89 |
# License Information
|
90 |
|
91 |
-
This dataset retains the same license as the source dataset
|
|
|
92 |
|
93 |
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
94 |
|
95 |
|
96 |
# Citation Information
|
97 |
|
98 |
-
|
99 |
```
|
100 |
@inproceedings{panayotov2015librispeech,
|
101 |
title={Librispeech: an ASR corpus based on public domain audio books},
|
|
|
12 |
Voice Activity Detection (VAD) Test Dataset
|
13 |
|
14 |
This dataset is based on the `test.clean` and `test.other` splits from the
|
15 |
+
[librispeech_asr](https://huggingface.co/datasets/openslr/librispeech_asr)
|
16 |
+
corpus. It includes two binary features:
|
17 |
|
18 |
- **speech**: Indicates presence of speech ([0, 1]), computed using a dynamic threshold method with background noise estimation and smoothing.
|
19 |
|
20 |
+
- **confidence**: A post-processing flag to optionally correct transient dropouts in speech. It is set to 1 by default, but switches to 0 for up to ~0.1 seconds (3 chunks of audio) following a transition from speech to silence. Approximately 7% of the `speech` features in this dataset are `confidence` 0. The remaining 93% are `confidence` 1 enabling VAD testing.
|
21 |
|
22 |
The dataset has minimal background noise, making it suitable for mixing with
|
23 |
external noise samples to test VAD robustness.
|
|
|
29 |
|
30 |
<img src="assets/test_other_item_02.png" alt="Example from test.other"/>
|
31 |
|
32 |
+
The example below shows brief dropouts in the `speech` feature during natural
|
33 |
+
short pauses of quiet in the talker's speech. Since some VAD models may react
|
34 |
+
more slowly, the `confidence` feature offers a way to optionally ignore these
|
35 |
+
transient droputs when evaluating performance.
|
36 |
|
37 |
<img src="assets/test_clean_item_02.png" alt="Example from test.other"/>
|
38 |
|
39 |
# Example usage of dataset
|
40 |
|
41 |
+
The VAD model under test must support processing a chunk size of 512 audio
|
42 |
+
samples at 16000 Hz generating a prediction for each `speech` feature.
|
43 |
|
44 |
```console
|
45 |
import datasets
|
|
|
51 |
audio = dataset["test.clean"][0]["audio"]["array"]
|
52 |
speech = dataset["test.clean"][0]["speech"]
|
53 |
|
54 |
+
# Compute voice activity probabilities
|
55 |
+
speech_probs = vad_model(audio)
|
56 |
|
57 |
+
# Add test code here
|
|
|
58 |
roc_auc = roc_auc_score(speech, speech_probs)
|
59 |
```
|
60 |
+
In practice you would run the AUC computation across the entire test split.
|
61 |
|
62 |
+
## Ignore transient dropouts
|
63 |
+
|
64 |
+
The `confidence` values can be used to filter the data. Removing zero confidence
|
65 |
+
values excludes 6.8% of the dataset and causes numerical increase in
|
66 |
+
computed precision. This compensates for slower moving voice activity decisions
|
67 |
+
as encountered in real-world applications.
|
68 |
|
69 |
```console
|
70 |
confidence = dataset["test.clean"][0]["confidence"]
|
|
|
86 |
|
87 |
<img src="assets/roc_test_clean.png" alt="Example from test.clean with Silero-VAD"/>
|
88 |
|
89 |
+
Precision values are increased when data is sliced by `confidence` values.
|
90 |
+
These low-confidence `speech` features are flagged rather than removed, allowing
|
91 |
+
users to either exclude them (as shown here) or handle them with other methods.
|
92 |
|
93 |
<img src="assets/roc_test_clean_exclude_low_confidence.png" alt="Example from test.clean with Silero-VAD"/>
|
94 |
|
95 |
# License Information
|
96 |
|
97 |
+
This derivative dataset retains the same license as the source dataset
|
98 |
+
[librispeech_asr](https://huggingface.co/datasets/openslr/librispeech_asr).
|
99 |
|
100 |
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
101 |
|
102 |
|
103 |
# Citation Information
|
104 |
|
105 |
+
Features contributed by Guy Nicholson were added to the following dataset.
|
106 |
```
|
107 |
@inproceedings{panayotov2015librispeech,
|
108 |
title={Librispeech: an ASR corpus based on public domain audio books},
|