You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-9Lines changed: 26 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,12 @@ One needs to collect few 4 to 10 uniquely sounding pronunciations
84
84
of a given wakeword. Then put them into a seperate folder, which doesnt contain
85
85
anything else.
86
86
87
+
Or one could use the following command to generate audio files for a given word, uses ibm neural tts demo api, Kindly dont over use it for our sake (lol)
88
+
89
+
```bash
90
+
python -m eff_word_net.ibm_generate
91
+
```
92
+
87
93
Finally run this command, it will ask for the input folder's location
88
94
(containing the audio files) and the output folder (where _ref.json file will be stored).
89
95
```
@@ -96,9 +102,17 @@ The pathname of the generated wakeword needs to passed to the HotwordDetector de
threshold=0.9, #min confidence required to consider a trigger
106
+
relaxation_time =0.8#default value ,in seconds
100
107
)
101
108
```
109
+
relaxation time parameter is used to determine the min time between any 2 triggers, any potential triggers before the relaxation_time will be cancelled
110
+
111
+
The detector operates on a sliding widow approach resulting in multiple triggers for single utterance of a hotword, the relaxation_time parameter can used to control the multiple triggers, in most cases 0.8sec(default) will do
112
+
113
+
<br>
114
+
115
+
## Out of the box sample hotwords
102
116
Few wakewords such as **Mycroft**, **Google**, **Firefox**, **Alexa**, **Mobile**, **Siri** the library has predefined embeddings readily available in the library installation directory, its path is readily available in the following variable
103
117
104
118
```python
@@ -118,7 +132,6 @@ from eff_word_net import samples_loc
to detect multiple hotwords from a given stream, installed
142
-
of running `checkFrame()` of each wakeword individually
157
+
to detect multiple hotwords from a given stream, instead of running `scoreFrame()` of each wakeword individually
143
158
144
159
```python
145
160
import os
@@ -188,8 +203,10 @@ while True :
188
203
Access documentation of the library from here : https://ant-brain.github.io/EfficientWord-Net/
189
204
190
205
191
-
## About `activation_count` in `HotwordDetector`
192
-
Documenatation with detailed explanation on the usage of `activation_count` parameter in `HotwordDetector` is in the making , For now understand that for long hotwords 3 is advisable and 2 for smaller hotwords. If the detector gives out multiple triggers for a single utterance, try increasing `activation_count`. To experiment begin with smaller values. Default value for the same is 2
206
+
## Change notes from v0.1.1 to 0.2.2
207
+
major changes to replace complex friking logic of handling poly triggers per utterance into more simpler logic and more simpler api for programmers
0 commit comments