Jarbas commited on
Commit
afd62aa
·
verified ·
1 Parent(s): d1bcdf2

Load models, results and test clips at runtime from the model repository and the plugin repository

Browse files
README.md CHANGED
@@ -23,15 +23,22 @@ with [WakeHuBERT tiny](https://huggingface.co/TigreGotico/wakehubert-tiny), runs
23
  and takes the sigmoid of its output. A score at or above the threshold is a detection; the model is then reset and
24
  detections are ignored for 2 s. Each model starts at its own default threshold.
25
 
 
 
 
 
 
 
 
 
 
 
26
  The files in this Space:
27
 
28
- - `models.json` and `models/` are the heads of
29
- [OpenVoiceOS/wakehubert-wakewords](https://huggingface.co/OpenVoiceOS/wakehubert-wakewords) at revision
30
- `d7c4c3d46f7c95d9c21989d43b99fecffc6d946c`, the revision the plugin pins; `results.json` is the results table of
31
- that repository's README.
32
  - `featurizer/` holds the int8 and float32 WakeHuBERT tiny featurizers and their `config.json`, from
33
- TigreGotico/wakehubert-tiny at revision `e30726f3a1c28bb5dffadf101fe26c97e0e3c3e1`.
34
- - `clips/` holds the plugin's test clips: synthetic speech (edge-tts voices) saying each wake word.
35
  - `vendor/ort/` is [onnxruntime-web](https://www.npmjs.com/package/onnxruntime-web) 1.30.0, MIT, unmodified.
 
36
 
37
  Models and code are Apache-2.0.
 
23
  and takes the sigmoid of its output. A score at or above the threshold is a detection; the model is then reset and
24
  detections are ignored for 2 s. Each model starts at its own default threshold.
25
 
26
+ The page loads its data when it opens:
27
+
28
+ - The model list, `models.json`, and every word's head model come from
29
+ [OpenVoiceOS/wakehubert-wakewords](https://huggingface.co/OpenVoiceOS/wakehubert-wakewords) at its main branch, so a
30
+ model uploaded there is in the word picker on the next page load. The recall and false-activation figures shown for
31
+ a word are the `measured` block of its `models.json` entry; a word without one is listed without figures.
32
+ - The example clip for each word is `test/clips/<word>.wav` of the plugin repository, on its `dev` branch, fetched from
33
+ raw.githubusercontent.com. A word without a clip there has no example clip. The clips are synthetic speech (edge-tts
34
+ voices) saying the wake word.
35
+
36
  The files in this Space:
37
 
 
 
 
 
38
  - `featurizer/` holds the int8 and float32 WakeHuBERT tiny featurizers and their `config.json`, from
39
+ TigreGotico/wakehubert-tiny at revision `e30726f3a1c28bb5dffadf101fe26c97e0e3c3e1`. A model that names any other
40
+ featurizer is listed as unavailable.
41
  - `vendor/ort/` is [onnxruntime-web](https://www.npmjs.com/package/onnxruntime-web) 1.30.0, MIT, unmodified.
42
+ - `index.html`, `app.js`, `worker.js`, `worklet.js` and `style.css` are the page.
43
 
44
  Models and code are Apache-2.0.
app.js CHANGED
@@ -6,8 +6,12 @@ const LIVE_KEEP_BLOCKS = 12.5 * 600;
6
  const FETCH_TIMEOUT_MS = 90_000;
7
  const LOAD_TIMEOUT_MS = 180_000;
8
 
9
- // The page's own files carry the __sign parameter of the page URL (see index.html).
10
- const signed = (path) => window.signedUrl(path);
 
 
 
 
11
 
12
  async function fetchFile(path) {
13
  const ctl = new AbortController();
@@ -84,7 +88,6 @@ worker.onerror = (e) => {
84
 
85
  // ---- state --------------------------------------------------------------------------------------
86
  let models = [];
87
- let results = {};
88
  let entry = null;
89
  let threshold = 0.5;
90
  let mode = "idle"; // idle | live | clip
@@ -92,6 +95,7 @@ let clip = null; // {samples, label, scores, detections}
92
  let live = null; // {scores, detections, offset, ctx, stream, node, backlog}
93
  let loadToken = 0;
94
 
 
95
  const spoken = (name) => name.replace(/^wakehubert_/, "").replace(/_/g, " ");
96
  const fmt = (x, d = 3) => Number(x).toFixed(d);
97
 
@@ -177,13 +181,16 @@ async function scoreSamples(name, samples, thr) {
177
 
178
  // ---- model selection ----------------------------------------------------------------------------
179
  function renderFacts() {
180
- const res = results[entry.name];
181
  const rows = [
 
182
  ["Featurizer", entry.featurizer === "wakehubert-int8" ? "WakeHuBERT int8" : "WakeHuBERT float32"],
183
  ["Default threshold", String(entry.default_threshold)],
184
- ["Recall at default", res ? `${(100 * res.recall).toFixed(1)}%` : "not published"],
185
- ["False activations per hour", res ? String(res.fa_per_hour) : "not published"],
186
  ];
 
 
 
 
187
  els.facts.replaceChildren(...rows.map(([k, v]) => {
188
  const d = document.createElement("div");
189
  d.innerHTML = "<dt></dt><dd></dd>";
@@ -195,7 +202,7 @@ function renderFacts() {
195
  const d = document.createElement("div");
196
  d.className = "wide";
197
  d.innerHTML = "<dt>Recall measured on</dt><dd></dd>";
198
- d.children[1].textContent = `${res.test_set}; false activations over 46.5 h of speech, non-speech and household audio.`;
199
  els.facts.append(d);
200
  }
201
  els.wordNote.hidden = entry.calibrated;
@@ -218,7 +225,7 @@ async function selectModel(name) {
218
  els.word.value = entry.name;
219
  setThreshold(entry.default_threshold);
220
  renderFacts();
221
- const clipName = entry.name.replace(/^wakehubert_/, "");
222
  if ([...els.example.options].some((o) => o.value === clipName)) els.example.value = clipName;
223
  const token = ++loadToken;
224
  setStatus(`Loading the ${spoken(entry.name)} model…`);
@@ -563,7 +570,7 @@ els.runExample.addEventListener("click", async () => {
563
  const name = els.example.value;
564
  let blob;
565
  try {
566
- blob = await (await fetchFile(`clips/${name}.wav`)).blob();
567
  } catch (err) {
568
  setStatus(`Could not fetch the example clip: ${err.message}`, true);
569
  return;
@@ -576,22 +583,29 @@ new ResizeObserver(() => draw()).observe(els.plot);
576
 
577
  async function init() {
578
  themeLabel();
579
- const [m, r] = await Promise.all([fetchFile("models.json").then((x) => x.json()),
580
- fetchFile("results.json").then((x) => x.json())]);
581
- models = m.models;
582
- results = r;
583
- for (const e of models) {
584
  const o = document.createElement("option");
585
  o.value = e.name;
586
- o.textContent = e.calibrated ? spoken(e.name) : `${spoken(e.name)} (threshold not calibrated)`;
 
 
 
587
  els.word.append(o);
588
- const x = document.createElement("option");
589
- x.value = e.name.replace(/^wakehubert_/, "");
590
- x.textContent = `"${spoken(e.name)}"`;
591
- els.example.append(x);
592
- }
 
 
 
593
  const wanted = new URLSearchParams(location.search).get("word");
594
- await selectModel(wanted ? `wakehubert_${wanted}` : "wakehubert_jarvis");
 
 
595
  }
596
 
597
  const ready = init().catch((err) => setStatus(`The page failed to start: ${err.message}`, true));
 
6
  const FETCH_TIMEOUT_MS = 90_000;
7
  const LOAD_TIMEOUT_MS = 180_000;
8
 
9
+ const MODEL_BASE = "https://huggingface.co/OpenVoiceOS/wakehubert-wakewords/resolve/main/";
10
+ const CLIP_BASE = "https://raw.githubusercontent.com/OpenVoiceOS/ovos-ww-plugin-wakeforge/dev/test/clips/";
11
+ const FEATURIZERS = new Set(["wakehubert-int8", "wakehubert"]);
12
+
13
+ // The page's own files carry the __sign parameter of the page URL (see index.html); absolute URLs do not.
14
+ const signed = (path) => (/^https?:/.test(path) ? path : window.signedUrl(path));
15
 
16
  async function fetchFile(path) {
17
  const ctl = new AbortController();
 
88
 
89
  // ---- state --------------------------------------------------------------------------------------
90
  let models = [];
 
91
  let entry = null;
92
  let threshold = 0.5;
93
  let mode = "idle"; // idle | live | clip
 
95
  let live = null; // {scores, detections, offset, ctx, stream, node, backlog}
96
  let loadToken = 0;
97
 
98
+ const clipOf = (name) => name.replace(/^wakehubert_/, "");
99
  const spoken = (name) => name.replace(/^wakehubert_/, "").replace(/_/g, " ");
100
  const fmt = (x, d = 3) => Number(x).toFixed(d);
101
 
 
181
 
182
  // ---- model selection ----------------------------------------------------------------------------
183
  function renderFacts() {
184
+ const res = entry.measured?.default;
185
  const rows = [
186
+ ["Language", entry.language],
187
  ["Featurizer", entry.featurizer === "wakehubert-int8" ? "WakeHuBERT int8" : "WakeHuBERT float32"],
188
  ["Default threshold", String(entry.default_threshold)],
 
 
189
  ];
190
+ if (res) {
191
+ rows.push(["Recall at default", `${(100 * res.recall).toFixed(1)}%`],
192
+ ["False activations per hour", String(res.false_activations_per_hour)]);
193
+ }
194
  els.facts.replaceChildren(...rows.map(([k, v]) => {
195
  const d = document.createElement("div");
196
  d.innerHTML = "<dt></dt><dd></dd>";
 
202
  const d = document.createElement("div");
203
  d.className = "wide";
204
  d.innerHTML = "<dt>Recall measured on</dt><dd></dd>";
205
+ d.children[1].textContent = `${res.recall_test_clips} clips, ${res.recall_test_set}; false activations over ${res.negative_hours} h of speech, non-speech and household audio.`;
206
  els.facts.append(d);
207
  }
208
  els.wordNote.hidden = entry.calibrated;
 
225
  els.word.value = entry.name;
226
  setThreshold(entry.default_threshold);
227
  renderFacts();
228
+ const clipName = clipOf(entry.name);
229
  if ([...els.example.options].some((o) => o.value === clipName)) els.example.value = clipName;
230
  const token = ++loadToken;
231
  setStatus(`Loading the ${spoken(entry.name)} model…`);
 
570
  const name = els.example.value;
571
  let blob;
572
  try {
573
+ blob = await (await fetchFile(`${CLIP_BASE}${name}.wav`)).blob();
574
  } catch (err) {
575
  setStatus(`Could not fetch the example clip: ${err.message}`, true);
576
  return;
 
583
 
584
  async function init() {
585
  themeLabel();
586
+ models = (await fetchFile(`${MODEL_BASE}models.json`).then((x) => x.json())).models;
587
+ const clips = await Promise.all(models.map((e) =>
588
+ fetch(`${CLIP_BASE}${clipOf(e.name)}.wav`, {method: "HEAD"}).then((r) => r.ok, () => false)));
589
+ models.forEach((e, i) => {
 
590
  const o = document.createElement("option");
591
  o.value = e.name;
592
+ const unavailable = !FEATURIZERS.has(e.featurizer);
593
+ o.disabled = unavailable;
594
+ o.textContent = unavailable ? `${spoken(e.name)} (unavailable: featurizer ${e.featurizer} not bundled)` :
595
+ e.calibrated ? spoken(e.name) : `${spoken(e.name)} (threshold not calibrated)`;
596
  els.word.append(o);
597
+ if (clips[i] && !unavailable) {
598
+ const x = document.createElement("option");
599
+ x.value = clipOf(e.name);
600
+ x.textContent = `"${spoken(e.name)}"`;
601
+ els.example.append(x);
602
+ }
603
+ });
604
+ els.runExample.disabled = els.example.disabled = !els.example.options.length;
605
  const wanted = new URLSearchParams(location.search).get("word");
606
+ const usable = (n) => models.some((m) => m.name === n && FEATURIZERS.has(m.featurizer));
607
+ const first = [`wakehubert_${wanted}`, "wakehubert_jarvis"].find(usable) || models.find((m) => FEATURIZERS.has(m.featurizer))?.name;
608
+ await selectModel(first);
609
  }
610
 
611
  const ready = init().catch((err) => setStatus(`The page failed to start: ${err.message}`, true));
clips/alexa.wav DELETED
Binary file (59.9 kB)
 
clips/android.wav DELETED
Binary file (60 kB)
 
clips/computer.wav DELETED
Binary file (60 kB)
 
clips/hello_nabu.wav DELETED
Binary file (60 kB)
 
clips/hey_chatterbox.wav DELETED
Binary file (66.9 kB)
 
clips/hey_computer.wav DELETED
Binary file (60 kB)
 
clips/hey_floyd.wav DELETED
Binary file (60 kB)
 
clips/hey_jarvis.wav DELETED
Binary file (62.3 kB)
 
clips/hey_k9.wav DELETED
Binary file (67.7 kB)
 
clips/hey_marvin.wav DELETED
Binary file (61.5 kB)
 
clips/hey_mycroft.wav DELETED
Binary file (59.9 kB)
 
clips/hey_rhasspy.wav DELETED
Binary file (64.6 kB)
 
clips/hey_robin.wav DELETED
Binary file (61.5 kB)
 
clips/hey_scout.wav DELETED
Binary file (60 kB)
 
clips/home_assistant.wav DELETED
Binary file (65.4 kB)
 
clips/jarvis.wav DELETED
Binary file (59.9 kB)
 
clips/marvin.wav DELETED
Binary file (60 kB)
 
clips/okay_nabu.wav DELETED
Binary file (60 kB)
 
clips/sheila.wav DELETED
Binary file (60 kB)
 
clips/stop.wav DELETED
Binary file (60 kB)
 
clips/wake_up.wav DELETED
Binary file (60 kB)
 
index.html CHANGED
@@ -113,8 +113,8 @@
113
  the threshold is a detection, after which the model is reset and detections are ignored for 2 s. The models run
114
  in <a href="https://onnxruntime.ai">onnxruntime-web</a>.</p>
115
  <p>Recall and false activations per hour are the figures the model repository publishes for each model at its
116
- default threshold. The example clips are synthetic speech from the plugin's test clips; any clip can be scored
117
- by any model, which shows how similar-sounding words behave. The models are English only.</p>
118
  </section>
119
  </main>
120
  <footer class="wrap foot">Models and code Apache-2.0. onnxruntime-web MIT.</footer>
 
113
  the threshold is a detection, after which the model is reset and detections are ignored for 2 s. The models run
114
  in <a href="https://onnxruntime.ai">onnxruntime-web</a>.</p>
115
  <p>Recall and false activations per hour are the figures the model repository publishes for each model at its
116
+ default threshold; the page reads the model list, the models and these figures from that repository on every load. The example clips are synthetic speech from the plugin's test clips; any clip can be scored
117
+ by any model, which shows how similar-sounding words behave.</p>
118
  </section>
119
  </main>
120
  <footer class="wrap foot">Models and code Apache-2.0. onnxruntime-web MIT.</footer>
models.json DELETED
@@ -1,562 +0,0 @@
1
- {
2
- "models": [
3
- {
4
- "name": "wakehubert_jarvis",
5
- "file": "models/wakehubert_jarvis.onnx",
6
- "word": "jarvis",
7
- "language": "en",
8
- "featurizer": "wakehubert-int8",
9
- "calibrated": true,
10
- "default_threshold": 0.57,
11
- "sha256": "b3db39a777aeb66f69523a7964dd4cae5545770494d24c0d12b1a46669e3de8c",
12
- "license": "Apache-2.0",
13
- "training_data": "synthetic only: an edge-tts voice grid, voice-converted copies of edge-tts clips, edge-tts and Google Translate TTS voices, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
14
- "measured": {
15
- "default": {
16
- "recall": 0.984,
17
- "false_activations_per_hour": 0.69,
18
- "recall_test_set": "Picovoice wake-word benchmark recordings of real speakers",
19
- "recall_test_clips": 384,
20
- "negative_hours": 46.5
21
- },
22
- "0.8": {
23
- "recall": 0.938,
24
- "false_activations_per_hour": 0.15,
25
- "recall_test_set": "Picovoice wake-word benchmark recordings of real speakers",
26
- "recall_test_clips": 384,
27
- "negative_hours": 46.5
28
- }
29
- }
30
- },
31
- {
32
- "name": "wakehubert_alexa",
33
- "file": "models/wakehubert_alexa.onnx",
34
- "word": "alexa",
35
- "language": "en",
36
- "featurizer": "wakehubert-int8",
37
- "calibrated": true,
38
- "default_threshold": 0.4,
39
- "sha256": "7f4b65ba036487958d180c87210e114547e8f73106317eb92a27ebc39133b4ef",
40
- "license": "Apache-2.0",
41
- "training_data": "synthetic only: edge-tts and Google Translate TTS voices, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
42
- "measured": {
43
- "default": {
44
- "recall": 0.867,
45
- "false_activations_per_hour": 0.69,
46
- "recall_test_set": "Picovoice wake-word benchmark recordings of real speakers",
47
- "recall_test_clips": 315,
48
- "negative_hours": 46.5
49
- },
50
- "0.8": {
51
- "recall": 0.733,
52
- "false_activations_per_hour": 0.13,
53
- "recall_test_set": "Picovoice wake-word benchmark recordings of real speakers",
54
- "recall_test_clips": 315,
55
- "negative_hours": 46.5
56
- }
57
- }
58
- },
59
- {
60
- "name": "wakehubert_hey_jarvis",
61
- "file": "models/wakehubert_hey_jarvis.onnx",
62
- "word": "hey jarvis",
63
- "language": "en",
64
- "featurizer": "wakehubert-int8",
65
- "calibrated": true,
66
- "default_threshold": 0.16,
67
- "sha256": "02851e30e8c5f81ce8dfcc8ddc8c506ad4e21e2eebb993bd3553ae0017445202",
68
- "license": "Apache-2.0",
69
- "training_data": "synthetic only: an edge-tts voice grid, edge-tts and Google Translate TTS voices, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
70
- "measured": {
71
- "default": {
72
- "recall": 0.945,
73
- "false_activations_per_hour": 0.09,
74
- "recall_test_set": "held-out synthetic voices",
75
- "recall_test_clips": 384,
76
- "negative_hours": 46.5
77
- },
78
- "0.8": {
79
- "recall": 0.862,
80
- "false_activations_per_hour": 0.02,
81
- "recall_test_set": "held-out synthetic voices",
82
- "recall_test_clips": 384,
83
- "negative_hours": 46.5
84
- }
85
- }
86
- },
87
- {
88
- "name": "wakehubert_hey_marvin",
89
- "file": "models/wakehubert_hey_marvin.onnx",
90
- "word": "hey marvin",
91
- "language": "en",
92
- "featurizer": "wakehubert-int8",
93
- "calibrated": true,
94
- "default_threshold": 0.34,
95
- "sha256": "1d0929a37d107032c0b0c410bba01edc01da406acb1760cc0574e0c1e9112294",
96
- "license": "Apache-2.0",
97
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
98
- "measured": {
99
- "default": {
100
- "recall": 0.974,
101
- "false_activations_per_hour": 0.95,
102
- "recall_test_set": "held-out synthetic voices",
103
- "recall_test_clips": 386,
104
- "negative_hours": 46.5
105
- },
106
- "0.8": {
107
- "recall": 0.907,
108
- "false_activations_per_hour": 0.24,
109
- "recall_test_set": "held-out synthetic voices",
110
- "recall_test_clips": 386,
111
- "negative_hours": 46.5
112
- }
113
- }
114
- },
115
- {
116
- "name": "wakehubert_home_assistant",
117
- "file": "models/wakehubert_home_assistant.onnx",
118
- "word": "home assistant",
119
- "language": "en",
120
- "featurizer": "wakehubert-int8",
121
- "calibrated": true,
122
- "default_threshold": 0.19,
123
- "sha256": "50a57ca721607b80d7fc198d7875248ef6b93db609026370348ab84192f95d4f",
124
- "license": "Apache-2.0",
125
- "training_data": "synthetic only: an edge-tts voice grid, edge-tts and Google Translate TTS voices, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
126
- "measured": {
127
- "default": {
128
- "recall": 0.911,
129
- "false_activations_per_hour": 0.3,
130
- "recall_test_set": "held-out synthetic voices",
131
- "recall_test_clips": 380,
132
- "negative_hours": 46.5
133
- },
134
- "0.8": {
135
- "recall": 0.842,
136
- "false_activations_per_hour": 0.15,
137
- "recall_test_set": "held-out synthetic voices",
138
- "recall_test_clips": 380,
139
- "negative_hours": 46.5
140
- }
141
- }
142
- },
143
- {
144
- "name": "wakehubert_okay_nabu",
145
- "file": "models/wakehubert_okay_nabu.onnx",
146
- "word": "okay nabu",
147
- "language": "en",
148
- "featurizer": "wakehubert-int8",
149
- "calibrated": true,
150
- "default_threshold": 0.45,
151
- "sha256": "41fbf1641ccd83a60c128aea27a79e7cdd8fa3612eb1bb8097b076120a8144bd",
152
- "license": "Apache-2.0",
153
- "training_data": "synthetic only: an edge-tts voice grid, edge-tts and Google Translate TTS voices, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
154
- "measured": {
155
- "default": {
156
- "recall": 0.92,
157
- "false_activations_per_hour": 0.26,
158
- "recall_test_set": "held-out synthetic voices",
159
- "recall_test_clips": 386,
160
- "negative_hours": 46.5
161
- },
162
- "0.8": {
163
- "recall": 0.754,
164
- "false_activations_per_hour": 0.02,
165
- "recall_test_set": "held-out synthetic voices",
166
- "recall_test_clips": 386,
167
- "negative_hours": 46.5
168
- }
169
- }
170
- },
171
- {
172
- "name": "wakehubert_hello_nabu",
173
- "file": "models/wakehubert_hello_nabu.onnx",
174
- "word": "hello nabu",
175
- "language": "en",
176
- "featurizer": "wakehubert-int8",
177
- "calibrated": true,
178
- "default_threshold": 0.49,
179
- "sha256": "ca247672badf4684de5d11b0282fbf129ab5338b17bed0c2f18fc69004de0ece",
180
- "license": "Apache-2.0",
181
- "training_data": "synthetic only: an edge-tts voice grid, further edge-tts voices, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
182
- "measured": {
183
- "default": {
184
- "recall": 0.809,
185
- "false_activations_per_hour": 0.39,
186
- "recall_test_set": "held-out synthetic voices",
187
- "recall_test_clips": 382,
188
- "negative_hours": 46.5
189
- },
190
- "0.8": {
191
- "recall": 0.652,
192
- "false_activations_per_hour": 0.02,
193
- "recall_test_set": "held-out synthetic voices",
194
- "recall_test_clips": 382,
195
- "negative_hours": 46.5
196
- }
197
- }
198
- },
199
- {
200
- "name": "wakehubert_hey_chatterbox",
201
- "file": "models/wakehubert_hey_chatterbox.onnx",
202
- "word": "hey chatterbox",
203
- "language": "en",
204
- "featurizer": "wakehubert-int8",
205
- "calibrated": true,
206
- "default_threshold": 0.13,
207
- "sha256": "aa3ba38acd01c2c6c001e67f2517bfcefb014842ab4ea84ac71c8b466418794f",
208
- "license": "Apache-2.0",
209
- "training_data": "synthetic only: an edge-tts voice grid, voice-converted copies of edge-tts clips, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
210
- "measured": {
211
- "default": {
212
- "recall": 0.828,
213
- "false_activations_per_hour": 0.09,
214
- "recall_test_set": "OVOS community recordings of real speakers",
215
- "recall_test_clips": 116,
216
- "negative_hours": 46.5
217
- },
218
- "0.8": {
219
- "recall": 0.612,
220
- "false_activations_per_hour": 0.0,
221
- "recall_test_set": "OVOS community recordings of real speakers",
222
- "recall_test_clips": 116,
223
- "negative_hours": 46.5
224
- }
225
- }
226
- },
227
- {
228
- "name": "wakehubert_hey_floyd",
229
- "file": "models/wakehubert_hey_floyd.onnx",
230
- "word": "hey floyd",
231
- "language": "en",
232
- "featurizer": "wakehubert-int8",
233
- "calibrated": true,
234
- "default_threshold": 0.43,
235
- "sha256": "e670d5543446c263e488301ffe337d58954edcc1fe57142c08bc4c783736722b",
236
- "license": "Apache-2.0",
237
- "training_data": "synthetic only: an edge-tts voice grid, voice-converted copies of edge-tts clips, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
238
- "measured": {
239
- "default": {
240
- "recall": 0.917,
241
- "false_activations_per_hour": 0.47,
242
- "recall_test_set": "OVOS community recordings of real speakers",
243
- "recall_test_clips": 96,
244
- "negative_hours": 46.5
245
- },
246
- "0.8": {
247
- "recall": 0.823,
248
- "false_activations_per_hour": 0.02,
249
- "recall_test_set": "OVOS community recordings of real speakers",
250
- "recall_test_clips": 96,
251
- "negative_hours": 46.5
252
- }
253
- }
254
- },
255
- {
256
- "name": "wakehubert_hey_rhasspy",
257
- "file": "models/wakehubert_hey_rhasspy.onnx",
258
- "word": "hey rhasspy",
259
- "language": "en",
260
- "featurizer": "wakehubert-int8",
261
- "calibrated": true,
262
- "default_threshold": 0.4,
263
- "sha256": "6daeeb497f5aac45f769a0c67e816e6d816399df0b704d949a76f752a7d54c89",
264
- "license": "Apache-2.0",
265
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
266
- "measured": {
267
- "default": {
268
- "recall": 1.0,
269
- "false_activations_per_hour": 0.6,
270
- "recall_test_set": "held-out synthetic voices",
271
- "recall_test_clips": 374,
272
- "negative_hours": 46.5
273
- },
274
- "0.8": {
275
- "recall": 0.976,
276
- "false_activations_per_hour": 0.11,
277
- "recall_test_set": "held-out synthetic voices",
278
- "recall_test_clips": 374,
279
- "negative_hours": 46.5
280
- }
281
- }
282
- },
283
- {
284
- "name": "wakehubert_hey_robin",
285
- "file": "models/wakehubert_hey_robin.onnx",
286
- "word": "hey robin",
287
- "language": "en",
288
- "featurizer": "wakehubert-int8",
289
- "calibrated": true,
290
- "default_threshold": 0.05,
291
- "sha256": "3e8a24885153ad920f688679c0c5ac292951af1f258cf3971fa6f527cd61dce3",
292
- "license": "Apache-2.0",
293
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
294
- "measured": {
295
- "default": {
296
- "recall": 0.995,
297
- "false_activations_per_hour": 0.39,
298
- "recall_test_set": "held-out synthetic voices",
299
- "recall_test_clips": 380,
300
- "negative_hours": 46.5
301
- },
302
- "0.8": {
303
- "recall": 0.979,
304
- "false_activations_per_hour": 0.06,
305
- "recall_test_set": "held-out synthetic voices",
306
- "recall_test_clips": 380,
307
- "negative_hours": 46.5
308
- }
309
- }
310
- },
311
- {
312
- "name": "wakehubert_marvin",
313
- "file": "models/wakehubert_marvin.onnx",
314
- "word": "marvin",
315
- "language": "en",
316
- "featurizer": "wakehubert-int8",
317
- "calibrated": true,
318
- "default_threshold": 0.06,
319
- "sha256": "e1cafc139880f074a8c2545518eb3531ca520df3648b873adf31c0a2a8dd5fa5",
320
- "license": "Apache-2.0",
321
- "training_data": "synthetic only: an edge-tts voice grid, voice-converted copies of edge-tts clips, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
322
- "measured": {
323
- "default": {
324
- "recall": 0.733,
325
- "false_activations_per_hour": 0.77,
326
- "recall_test_set": "Speech Commands test split, real speakers",
327
- "recall_test_clips": 195,
328
- "negative_hours": 46.5
329
- },
330
- "0.8": {
331
- "recall": 0.718,
332
- "false_activations_per_hour": 0.67,
333
- "recall_test_set": "Speech Commands test split, real speakers",
334
- "recall_test_clips": 195,
335
- "negative_hours": 46.5
336
- }
337
- }
338
- },
339
- {
340
- "name": "wakehubert_sheila",
341
- "file": "models/wakehubert_sheila.onnx",
342
- "word": "sheila",
343
- "language": "en",
344
- "featurizer": "wakehubert-int8",
345
- "calibrated": true,
346
- "default_threshold": 0.47,
347
- "sha256": "bdcfc2519fdc4e87dd13d3793b347d425c6ce8aa1f04ee5cb29d4e0d00ede234",
348
- "license": "Apache-2.0",
349
- "training_data": "synthetic only: an edge-tts voice grid, voice-converted copies of edge-tts clips, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
350
- "measured": {
351
- "default": {
352
- "recall": 0.887,
353
- "false_activations_per_hour": 2.08,
354
- "recall_test_set": "Speech Commands test split, real speakers",
355
- "recall_test_clips": 212,
356
- "negative_hours": 46.5
357
- },
358
- "0.8": {
359
- "recall": 0.844,
360
- "false_activations_per_hour": 0.54,
361
- "recall_test_set": "Speech Commands test split, real speakers",
362
- "recall_test_clips": 212,
363
- "negative_hours": 46.5
364
- }
365
- }
366
- },
367
- {
368
- "name": "wakehubert_stop",
369
- "file": "models/wakehubert_stop.onnx",
370
- "word": "stop",
371
- "language": "en",
372
- "featurizer": "wakehubert-int8",
373
- "calibrated": true,
374
- "default_threshold": 0.14,
375
- "sha256": "c071186bc0c2bdbb51dfaff10a1a99de5d2cb90c2d5f7976bb2ae445f089b4c2",
376
- "license": "Apache-2.0",
377
- "training_data": "synthetic only: an edge-tts voice grid, voice-converted copies of edge-tts clips, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
378
- "measured": {
379
- "default": {
380
- "recall": 0.866,
381
- "false_activations_per_hour": 2.06,
382
- "recall_test_set": "Speech Commands test split, real speakers",
383
- "recall_test_clips": 411,
384
- "negative_hours": 46.5
385
- },
386
- "0.8": {
387
- "recall": 0.769,
388
- "false_activations_per_hour": 0.45,
389
- "recall_test_set": "Speech Commands test split, real speakers",
390
- "recall_test_clips": 411,
391
- "negative_hours": 46.5
392
- }
393
- }
394
- },
395
- {
396
- "name": "wakehubert_android",
397
- "file": "models/wakehubert_android.onnx",
398
- "word": "android",
399
- "language": "en",
400
- "featurizer": "wakehubert-int8",
401
- "calibrated": true,
402
- "default_threshold": 0.42,
403
- "sha256": "753ad4800946a552c134e8c330d9eab1a042d4b6fb0b0500d8e9395d3761a2cf",
404
- "license": "Apache-2.0",
405
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
406
- "measured": {
407
- "default": {
408
- "recall": 0.987,
409
- "false_activations_per_hour": 0.95,
410
- "recall_test_set": "held-out synthetic voices",
411
- "recall_test_clips": 390,
412
- "negative_hours": 46.5
413
- },
414
- "0.8": {
415
- "recall": 0.964,
416
- "false_activations_per_hour": 0.11,
417
- "recall_test_set": "held-out synthetic voices",
418
- "recall_test_clips": 390,
419
- "negative_hours": 46.5
420
- }
421
- }
422
- },
423
- {
424
- "name": "wakehubert_hey_computer",
425
- "file": "models/wakehubert_hey_computer.onnx",
426
- "word": "hey computer",
427
- "language": "en",
428
- "featurizer": "wakehubert-int8",
429
- "calibrated": true,
430
- "default_threshold": 0.31,
431
- "sha256": "6ea782477908e8512a59a7c23541d42913ca39c95295a20b788693cc4a1b07f3",
432
- "license": "Apache-2.0",
433
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
434
- "measured": {
435
- "default": {
436
- "recall": 0.964,
437
- "false_activations_per_hour": 0.47,
438
- "recall_test_set": "held-out synthetic voices",
439
- "recall_test_clips": 390,
440
- "negative_hours": 46.5
441
- },
442
- "0.8": {
443
- "recall": 0.933,
444
- "false_activations_per_hour": 0.04,
445
- "recall_test_set": "held-out synthetic voices",
446
- "recall_test_clips": 390,
447
- "negative_hours": 46.5
448
- }
449
- }
450
- },
451
- {
452
- "name": "wakehubert_hey_k9",
453
- "file": "models/wakehubert_hey_k9.onnx",
454
- "word": "hey k9",
455
- "language": "en",
456
- "featurizer": "wakehubert-int8",
457
- "calibrated": true,
458
- "default_threshold": 0.06,
459
- "sha256": "3705ef79d9c7cce3c7e89669b4e1a55f0495ea2719287c9225fed5b6a09d63bf",
460
- "license": "Apache-2.0",
461
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
462
- "measured": {
463
- "default": {
464
- "recall": 0.994,
465
- "false_activations_per_hour": 0.19,
466
- "recall_test_set": "held-out synthetic voices",
467
- "recall_test_clips": 338,
468
- "negative_hours": 46.5
469
- },
470
- "0.8": {
471
- "recall": 0.935,
472
- "false_activations_per_hour": 0.04,
473
- "recall_test_set": "held-out synthetic voices",
474
- "recall_test_clips": 338,
475
- "negative_hours": 46.5
476
- }
477
- }
478
- },
479
- {
480
- "name": "wakehubert_hey_scout",
481
- "file": "models/wakehubert_hey_scout.onnx",
482
- "word": "hey scout",
483
- "language": "en",
484
- "featurizer": "wakehubert-int8",
485
- "calibrated": true,
486
- "default_threshold": 0.36,
487
- "sha256": "c72fba4f93cf69b4bd9510682a3a80db67f663a0686f4d331a34d44ff031fdf3",
488
- "license": "Apache-2.0",
489
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
490
- "measured": {
491
- "default": {
492
- "recall": 0.959,
493
- "false_activations_per_hour": 0.09,
494
- "recall_test_set": "held-out synthetic voices",
495
- "recall_test_clips": 390,
496
- "negative_hours": 46.5
497
- },
498
- "0.8": {
499
- "recall": 0.938,
500
- "false_activations_per_hour": 0.04,
501
- "recall_test_set": "held-out synthetic voices",
502
- "recall_test_clips": 390,
503
- "negative_hours": 46.5
504
- }
505
- }
506
- },
507
- {
508
- "name": "wakehubert_wake_up",
509
- "file": "models/wakehubert_wake_up.onnx",
510
- "word": "wake up",
511
- "language": "en",
512
- "featurizer": "wakehubert-int8",
513
- "calibrated": true,
514
- "default_threshold": 0.36,
515
- "sha256": "524e54bc24cf790339928bf8656d0c23d533108328e7b316afbd65b8cdfe28aa",
516
- "license": "Apache-2.0",
517
- "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
518
- "measured": {
519
- "default": {
520
- "recall": 0.981,
521
- "false_activations_per_hour": 1.1,
522
- "recall_test_set": "held-out synthetic voices",
523
- "recall_test_clips": 378,
524
- "negative_hours": 46.5
525
- },
526
- "0.8": {
527
- "recall": 0.968,
528
- "false_activations_per_hour": 0.19,
529
- "recall_test_set": "held-out synthetic voices",
530
- "recall_test_clips": 378,
531
- "negative_hours": 46.5
532
- }
533
- }
534
- },
535
- {
536
- "name": "wakehubert_computer",
537
- "file": "models/wakehubert_computer.onnx",
538
- "word": "computer",
539
- "language": "en",
540
- "featurizer": "wakehubert",
541
- "calibrated": false,
542
- "default_threshold": 0.99,
543
- "sha256": "4ecda088bcce9951730de9fc8b1c4f801ea208add0cbf8a1b9397ed7d8329496",
544
- "license": "Apache-2.0",
545
- "training_data": "TigreGotico/synthetic-wakeword-computer (CC BY 4.0); negatives: TigreGotico/not-wake-words-speech-en (CC BY 4.0) and AudioSet-derived clips",
546
- "measured": null
547
- },
548
- {
549
- "name": "wakehubert_hey_mycroft",
550
- "file": "models/wakehubert_hey_mycroft.onnx",
551
- "word": "hey mycroft",
552
- "language": "en",
553
- "featurizer": "wakehubert",
554
- "calibrated": false,
555
- "default_threshold": 0.965,
556
- "sha256": "42b9f262c8414c5613280ab1bb8b848c47531b59b955f29bfd6902e500b53415",
557
- "license": "Apache-2.0",
558
- "training_data": "human recordings",
559
- "measured": null
560
- }
561
- ]
562
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
models/wakehubert_alexa.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7f4b65ba036487958d180c87210e114547e8f73106317eb92a27ebc39133b4ef
3
- size 467299
 
 
 
 
models/wakehubert_android.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:753ad4800946a552c134e8c330d9eab1a042d4b6fb0b0500d8e9395d3761a2cf
3
- size 467287
 
 
 
 
models/wakehubert_computer.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4ecda088bcce9951730de9fc8b1c4f801ea208add0cbf8a1b9397ed7d8329496
3
- size 5354674
 
 
 
 
models/wakehubert_hello_nabu.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ca247672badf4684de5d11b0282fbf129ab5338b17bed0c2f18fc69004de0ece
3
- size 467314
 
 
 
 
models/wakehubert_hey_chatterbox.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:aa3ba38acd01c2c6c001e67f2517bfcefb014842ab4ea84ac71c8b466418794f
3
- size 467336
 
 
 
 
models/wakehubert_hey_computer.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ea782477908e8512a59a7c23541d42913ca39c95295a20b788693cc4a1b07f3
3
- size 467290
 
 
 
 
models/wakehubert_hey_floyd.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e670d5543446c263e488301ffe337d58954edcc1fe57142c08bc4c783736722b
3
- size 467329
 
 
 
 
models/wakehubert_hey_jarvis.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:02851e30e8c5f81ce8dfcc8ddc8c506ad4e21e2eebb993bd3553ae0017445202
3
- size 467331
 
 
 
 
models/wakehubert_hey_k9.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3705ef79d9c7cce3c7e89669b4e1a55f0495ea2719287c9225fed5b6a09d63bf
3
- size 467285
 
 
 
 
models/wakehubert_hey_marvin.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d0929a37d107032c0b0c410bba01edc01da406acb1760cc0574e0c1e9112294
3
- size 467290
 
 
 
 
models/wakehubert_hey_mycroft.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:42b9f262c8414c5613280ab1bb8b848c47531b59b955f29bfd6902e500b53415
3
- size 10691744
 
 
 
 
models/wakehubert_hey_rhasspy.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6daeeb497f5aac45f769a0c67e816e6d816399df0b704d949a76f752a7d54c89
3
- size 467287
 
 
 
 
models/wakehubert_hey_robin.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3e8a24885153ad920f688679c0c5ac292951af1f258cf3971fa6f527cd61dce3
3
- size 467288
 
 
 
 
models/wakehubert_hey_scout.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c72fba4f93cf69b4bd9510682a3a80db67f663a0686f4d331a34d44ff031fdf3
3
- size 467286
 
 
 
 
models/wakehubert_home_assistant.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:50a57ca721607b80d7fc198d7875248ef6b93db609026370348ab84192f95d4f
3
- size 467334
 
 
 
 
models/wakehubert_jarvis.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3db39a777aeb66f69523a7964dd4cae5545770494d24c0d12b1a46669e3de8c
3
- size 467369
 
 
 
 
models/wakehubert_marvin.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e1cafc139880f074a8c2545518eb3531ca520df3648b873adf31c0a2a8dd5fa5
3
- size 467326
 
 
 
 
models/wakehubert_okay_nabu.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:41fbf1641ccd83a60c128aea27a79e7cdd8fa3612eb1bb8097b076120a8144bd
3
- size 467331
 
 
 
 
models/wakehubert_sheila.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bdcfc2519fdc4e87dd13d3793b347d425c6ce8aa1f04ee5cb29d4e0d00ede234
3
- size 467328
 
 
 
 
models/wakehubert_stop.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c071186bc0c2bdbb51dfaff10a1a99de5d2cb90c2d5f7976bb2ae445f089b4c2
3
- size 467325
 
 
 
 
models/wakehubert_wake_up.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:524e54bc24cf790339928bf8656d0c23d533108328e7b316afbd65b8cdfe28aa
3
- size 467286
 
 
 
 
results.json DELETED
@@ -1,135 +0,0 @@
1
- {
2
- "wakehubert_jarvis": {
3
- "recall": 0.9840000000000001,
4
- "fa_per_hour": 0.69,
5
- "recall_at_08": 0.938,
6
- "fa_at_08": 0.15,
7
- "test_set": "384 Picovoice recordings of real speakers"
8
- },
9
- "wakehubert_alexa": {
10
- "recall": 0.867,
11
- "fa_per_hour": 0.69,
12
- "recall_at_08": 0.733,
13
- "fa_at_08": 0.13,
14
- "test_set": "315 Picovoice recordings of real speakers"
15
- },
16
- "wakehubert_hey_jarvis": {
17
- "recall": 0.945,
18
- "fa_per_hour": 0.09,
19
- "recall_at_08": 0.862,
20
- "fa_at_08": 0.02,
21
- "test_set": "384 clips in held-out synthetic voices"
22
- },
23
- "wakehubert_hey_marvin": {
24
- "recall": 0.9740000000000001,
25
- "fa_per_hour": 0.95,
26
- "recall_at_08": 0.907,
27
- "fa_at_08": 0.24,
28
- "test_set": "386 clips in held-out synthetic voices"
29
- },
30
- "wakehubert_home_assistant": {
31
- "recall": 0.9109999999999999,
32
- "fa_per_hour": 0.3,
33
- "recall_at_08": 0.8420000000000001,
34
- "fa_at_08": 0.15,
35
- "test_set": "380 clips in held-out synthetic voices"
36
- },
37
- "wakehubert_okay_nabu": {
38
- "recall": 0.92,
39
- "fa_per_hour": 0.26,
40
- "recall_at_08": 0.754,
41
- "fa_at_08": 0.02,
42
- "test_set": "386 clips in held-out synthetic voices"
43
- },
44
- "wakehubert_hello_nabu": {
45
- "recall": 0.809,
46
- "fa_per_hour": 0.39,
47
- "recall_at_08": 0.652,
48
- "fa_at_08": 0.02,
49
- "test_set": "382 clips in held-out synthetic voices"
50
- },
51
- "wakehubert_hey_chatterbox": {
52
- "recall": 0.828,
53
- "fa_per_hour": 0.09,
54
- "recall_at_08": 0.612,
55
- "fa_at_08": 0.0,
56
- "test_set": "116 OVOS community recordings of real speakers"
57
- },
58
- "wakehubert_hey_floyd": {
59
- "recall": 0.917,
60
- "fa_per_hour": 0.47,
61
- "recall_at_08": 0.823,
62
- "fa_at_08": 0.02,
63
- "test_set": "96 OVOS community recordings of real speakers"
64
- },
65
- "wakehubert_hey_rhasspy": {
66
- "recall": 1.0,
67
- "fa_per_hour": 0.6,
68
- "recall_at_08": 0.976,
69
- "fa_at_08": 0.11,
70
- "test_set": "374 clips in held-out synthetic voices"
71
- },
72
- "wakehubert_hey_robin": {
73
- "recall": 0.995,
74
- "fa_per_hour": 0.39,
75
- "recall_at_08": 0.9790000000000001,
76
- "fa_at_08": 0.06,
77
- "test_set": "380 clips in held-out synthetic voices"
78
- },
79
- "wakehubert_marvin": {
80
- "recall": 0.733,
81
- "fa_per_hour": 0.77,
82
- "recall_at_08": 0.718,
83
- "fa_at_08": 0.67,
84
- "test_set": "195 Speech Commands test recordings of real speakers"
85
- },
86
- "wakehubert_sheila": {
87
- "recall": 0.887,
88
- "fa_per_hour": 2.08,
89
- "recall_at_08": 0.8440000000000001,
90
- "fa_at_08": 0.54,
91
- "test_set": "212 Speech Commands test recordings of real speakers"
92
- },
93
- "wakehubert_stop": {
94
- "recall": 0.866,
95
- "fa_per_hour": 2.06,
96
- "recall_at_08": 0.769,
97
- "fa_at_08": 0.45,
98
- "test_set": "411 Speech Commands test recordings of real speakers"
99
- },
100
- "wakehubert_android": {
101
- "recall": 0.987,
102
- "fa_per_hour": 0.95,
103
- "recall_at_08": 0.9640000000000001,
104
- "fa_at_08": 0.11,
105
- "test_set": "390 clips in held-out synthetic voices"
106
- },
107
- "wakehubert_hey_computer": {
108
- "recall": 0.9640000000000001,
109
- "fa_per_hour": 0.47,
110
- "recall_at_08": 0.9329999999999999,
111
- "fa_at_08": 0.04,
112
- "test_set": "390 clips in held-out synthetic voices"
113
- },
114
- "wakehubert_hey_k9": {
115
- "recall": 0.9940000000000001,
116
- "fa_per_hour": 0.19,
117
- "recall_at_08": 0.935,
118
- "fa_at_08": 0.04,
119
- "test_set": "338 clips in held-out synthetic voices"
120
- },
121
- "wakehubert_hey_scout": {
122
- "recall": 0.9590000000000001,
123
- "fa_per_hour": 0.09,
124
- "recall_at_08": 0.938,
125
- "fa_at_08": 0.04,
126
- "test_set": "390 clips in held-out synthetic voices"
127
- },
128
- "wakehubert_wake_up": {
129
- "recall": 0.981,
130
- "fa_per_hour": 1.1,
131
- "recall_at_08": 0.968,
132
- "fa_at_08": 0.19,
133
- "test_set": "378 clips in held-out synthetic voices"
134
- }
135
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
worker.js CHANGED
@@ -1,12 +1,14 @@
1
  // Wake-word scoring, a port of the scoring path of ovos-ww-plugin-wakeforge
2
  // (WakeForgeHotwordPlugin.update / found_wake_word, OnnxWindowedWakeWord.push with
3
  // isolated windows, PredictionSmoother with the ready-model defaults).
4
- // The worker's URL carries the page's __sign parameter; every file it fetches carries it too, since a private
5
- // Space's iframe may have no cookie to authenticate them.
 
6
  const SIGN = new URL(import.meta.url).searchParams.get("__sign");
7
  const FETCH_TIMEOUT_MS = 90_000;
8
 
9
  function signed(path) {
 
10
  const url = new URL("./" + path, import.meta.url);
11
  url.search = "";
12
  if (SIGN) url.searchParams.set("__sign", SIGN);
@@ -83,7 +85,7 @@ function session(path) {
83
 
84
  async function modelEntry(name) {
85
  if (!models) {
86
- const json = JSON.parse(new TextDecoder().decode(await fetchBytes("models.json")));
87
  models = Object.fromEntries(json.models.map((m) => [m.name, m]));
88
  }
89
  const entry = models[name];
@@ -103,8 +105,9 @@ class Detector {
103
 
104
  static async create(name, threshold) {
105
  const entry = await modelEntry(name);
 
106
  const [feat, head] = await Promise.all([session(FEATURIZER_FILES[entry.featurizer]),
107
- session(entry.file)]);
108
  return new Detector(feat, head, threshold ?? entry.default_threshold);
109
  }
110
 
 
1
  // Wake-word scoring, a port of the scoring path of ovos-ww-plugin-wakeforge
2
  // (WakeForgeHotwordPlugin.update / found_wake_word, OnnxWindowedWakeWord.push with
3
  // isolated windows, PredictionSmoother with the ready-model defaults).
4
+ // The worker's URL carries the page's __sign parameter; every file of the Space it fetches carries it too, since
5
+ // a private Space's iframe may have no cookie to authenticate them. Absolute URLs do not carry it.
6
+ const MODEL_BASE = "https://huggingface.co/OpenVoiceOS/wakehubert-wakewords/resolve/main/";
7
  const SIGN = new URL(import.meta.url).searchParams.get("__sign");
8
  const FETCH_TIMEOUT_MS = 90_000;
9
 
10
  function signed(path) {
11
+ if (/^https?:/.test(path)) return path;
12
  const url = new URL("./" + path, import.meta.url);
13
  url.search = "";
14
  if (SIGN) url.searchParams.set("__sign", SIGN);
 
85
 
86
  async function modelEntry(name) {
87
  if (!models) {
88
+ const json = JSON.parse(new TextDecoder().decode(await fetchBytes(`${MODEL_BASE}models.json`)));
89
  models = Object.fromEntries(json.models.map((m) => [m.name, m]));
90
  }
91
  const entry = models[name];
 
105
 
106
  static async create(name, threshold) {
107
  const entry = await modelEntry(name);
108
+ if (!FEATURIZER_FILES[entry.featurizer]) throw new Error(`${name}: featurizer ${entry.featurizer} is not bundled`);
109
  const [feat, head] = await Promise.all([session(FEATURIZER_FILES[entry.featurizer]),
110
+ session(MODEL_BASE + entry.file)]);
111
  return new Detector(feat, head, threshold ?? entry.default_threshold);
112
  }
113