openwakeword-js 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +1 -1
- package/models/hello_deepa.onnx +0 -0
- package/models/namaste_deepa.onnx +0 -0
- package/package.json +1 -1
- package/scripts/download_models.js +4 -4
package/index.html
CHANGED
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
class="h-44 overflow-y-auto rounded-xl bg-[#030406] p-4 font-mono text-[10px] text-slate-600 border border-white/5 custom-scrollbar leading-relaxed">
|
|
287
287
|
<div
|
|
288
288
|
class="opacity-40 animate-pulse font-bold text-blue-900 border border-blue-900/40 p-1 inline-block rounded mb-2">
|
|
289
|
-
OPENWAKEWORD-JS V0.1.
|
|
289
|
+
OPENWAKEWORD-JS V0.1.17 READY</div>
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
292
|
</details>
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -9,9 +9,9 @@ const packageRoot = path.join(__dirname, '..');
|
|
|
9
9
|
const MODELS_DIR = path.join(process.cwd(), 'models');
|
|
10
10
|
|
|
11
11
|
const MODELS = {
|
|
12
|
-
'melspectrogram.onnx': 'https://github.com/dscripka/openWakeWord/
|
|
13
|
-
'embedding_model.onnx': 'https://github.com/dscripka/openWakeWord/
|
|
14
|
-
'silero_vad.onnx': 'https://github.com/dscripka/openWakeWord/
|
|
12
|
+
'melspectrogram.onnx': 'https://github.com/dscripka/openWakeWord/releases/download/v0.5.1/melspectrogram.onnx',
|
|
13
|
+
'embedding_model.onnx': 'https://github.com/dscripka/openWakeWord/releases/download/v0.5.1/embedding_model.onnx',
|
|
14
|
+
'silero_vad.onnx': 'https://github.com/dscripka/openWakeWord/releases/download/v0.5.1/silero_vad.onnx',
|
|
15
15
|
'hello_deepa.onnx': 'https://github.com/Firojpaudel/OpenWakeWord_npm_porting/raw/main/models/hello_deepa.onnx',
|
|
16
16
|
'namaste_deepa.onnx': 'https://github.com/Firojpaudel/OpenWakeWord_npm_porting/raw/main/models/namaste_deepa.onnx'
|
|
17
17
|
};
|
|
@@ -58,7 +58,7 @@ async function main() {
|
|
|
58
58
|
console.log('Downloading neural model binaries...');
|
|
59
59
|
for (const [name, url] of Object.entries(MODELS)) {
|
|
60
60
|
const dest = path.join(MODELS_DIR, name);
|
|
61
|
-
if (fs.existsSync(dest) && fs.statSync(dest).size >
|
|
61
|
+
if (fs.existsSync(dest) && fs.statSync(dest).size > 1000000) {
|
|
62
62
|
console.log(`- ${name} already exists and validated, skipping.`);
|
|
63
63
|
continue;
|
|
64
64
|
}
|