omanext commited on
Commit
c4e3280
1 Parent(s): 987011f

upload alexa.md

Browse files
Files changed (1) hide show
  1. alexa.md +82 -0
alexa.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Model Description
2
+
3
+ A model trained to detect the presence of the word "Alexa" in an audio recording of speech.
4
+
5
+ Other similar phrases such as "Hey Alexa" or "Alexa stop" may also work, but likely with higher false-reject rates. Similarly, a short pause after the speaking the wakeword is recommended, but the model may also detect the presence of the wakeword is a continuous stream of speech in certain cases.
6
+
7
+ # Model Architecture
8
+
9
+ The model is a simple 3-layer full-connected network, that takes the flattened input features from the frozen audio embedding mode. ReLU activations and layer norms are inserted between the layers. A representative (but not exact) example of this structure is shown below.
10
+
11
+ ```
12
+ ==========================================================================================
13
+ Layer (type:depth-idx) Output Shape Param #
14
+ ==========================================================================================
15
+ Sequential [1, 1] --
16
+ ├─Flatten: 1-1 [1, 1536] --
17
+ ├─Linear: 1-2 [1, 64] 98,368
18
+ ├─LayerNorm: 1-3 [1, 64] 128
19
+ ├─ReLU: 1-4 [1, 64] --
20
+ ├─Linear: 1-5 [1, 64] 4,160
21
+ ├─LayerNorm: 1-6 [1, 64] 128
22
+ ├─ReLU: 1-7 [1, 64] --
23
+ ├─Linear: 1-8 [1, 1] 65
24
+ ├─Sigmoid: 1-9 [1, 1] --
25
+ ==========================================================================================
26
+ Total params: 102,849
27
+ Trainable params: 102,849
28
+ Non-trainable params: 0
29
+ Total mult-adds (M): 0.10
30
+ ==========================================================================================
31
+ Input size (MB): 0.01
32
+ Forward/backward pass size (MB): 0.00
33
+ Params size (MB): 0.41
34
+ Estimated Total Size (MB): 0.42
35
+ ==========================================================================================
36
+ ```
37
+
38
+ # Training Data
39
+
40
+ ## Positive Data
41
+
42
+ The model was trained on approximately ~100,000 synthetically generated clips of the "Alexa" wakeword using two text-to-speech (TTS) models:
43
+
44
+ 1) [NVIDIA WAVEGLOW](https://github.com/NVIDIA/waveglow) with the LibriTTS multi-speaker model
45
+ 2) [VITS](https://github.com/jaywalnut310/vits) with the VCTK multi-speaker model
46
+
47
+ Clips were generated both with the trained speaker embeddings, and also mixtures of individual speaker embeddings to produce novel voices. See the [Synthetic Data Generation](../synthetic_data_generation.md) documentation page for more details.
48
+
49
+ The following phrases were included in the training data:
50
+
51
+ 1) "Alexa"
52
+ 2) "Alexa `<random words>`"
53
+
54
+ After generating the synthetic positive wakewords, they are augmented in two ways:
55
+
56
+ 1) Mixing with clips from the ACAV100M dataset referenced below at ratios of 0 to 30 dB
57
+ 2) Reverberated with simulated room impulse response functions from the [BIRD Impulse Response Dataset](https://github.com/FrancoisGrondin/BIRD)
58
+
59
+ ## Negative Data
60
+
61
+ The model was trained on approximately ~31,000 hours of negative data, with the approximate composition shown below:
62
+
63
+ 1) ~10,000 hours of noise, music, and speech from the [ACAV100M dataset](https://acav100m.github.io/)
64
+ 2) ~10,000 hours from the [Common Voice 11 dataset](https://commonvoice.mozilla.org/en/datasets), representing multiple languages
65
+ 3) ~10,000 hours of podcasts downloaded from the [Podcastindex database](https://podcastindex.org/)
66
+ 4) ~1,000 hours of music from the [Free Music Archive dataset](https://github.com/mdeff/fma)
67
+
68
+ In addition to the above, the total negative dataset also includes reverberated versions of the ACAV100M dataset (also using the simulated room impulse responses from the [BIRD Impulse Response Dataset](https://github.com/FrancoisGrondin/BIRD) dataset), and adversarial synthetic generations designed to be phonetically similar to the wakeword (e.g., "annex uh").
69
+
70
+ # Test Data
71
+
72
+ The positive test examples of the "Alexa" wakeword are those included in [Picovoice's](https://github.com/Picovoice/wake-word-benchmark) repository. This examples are mixed with the HOME recordings of background noise from the [DEMAND](https://zenodo.org/record/1227121#.Y3OSG77MJhE) dataset at an SNR of 10 dB, and have simulated reverberation applied using the real room-impulse-response functions from the [Room Impulse Response and Noise](https://www.openslr.org/28/) dataset.
73
+
74
+ # Performance
75
+
76
+ The false-accept/false-reject curve for the model on the test data is shown below. Decreasing the `threshold` parameter when using the model will increase the false-accept rate and decrease the false-reject rate.
77
+
78
+ ![FPR/FRR curve for "alexa" pre-trained model](images/alexa_performance_plot.png)
79
+
80
+ # Other Considerations
81
+
82
+ While the model was trained to be robust to background noise and reverberation, it will still perform the best when the audio is relatively clean and free of overly loud background noise. In particular, the presence of audio playback of music/speech from the same device that is capturing the microphone stream may result in significantly higher false-reject rates unless acoustic echo cancellation (AEC) is performed via hardware or software.