openwakeword-js 0.1.10 → 0.1.12
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 +8 -1
- package/package.json +1 -1
- package/scripts/download_models.js +4 -1
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.11 READY</div>
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
292
|
</details>
|
|
@@ -295,6 +295,13 @@
|
|
|
295
295
|
</div>
|
|
296
296
|
|
|
297
297
|
<!-- Scripts -->
|
|
298
|
+
<script type="importmap">
|
|
299
|
+
{
|
|
300
|
+
"imports": {
|
|
301
|
+
"onnxruntime-web": "./models/ort.min.mjs"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
</script>
|
|
298
305
|
<script src="./models/ort.min.js"></script>
|
|
299
306
|
<script type="module">
|
|
300
307
|
import { Model } from './openwakeword.mjs';
|
package/package.json
CHANGED
|
@@ -77,9 +77,12 @@ async function main() {
|
|
|
77
77
|
for (const file of wasmFiles) {
|
|
78
78
|
copyIfExists(path.join(nodeModulesPath, file), path.join(MODELS_DIR, file), 'WASM');
|
|
79
79
|
}
|
|
80
|
-
// Copy ORT Script
|
|
80
|
+
// Copy ORT Script (UMD)
|
|
81
81
|
const ortPath = path.join(nodeModulesPath, 'ort.min.js');
|
|
82
82
|
copyIfExists(ortPath, path.join(MODELS_DIR, 'ort.min.js'), 'ORT Script');
|
|
83
|
+
// Copy ORT Script (ESM)
|
|
84
|
+
const ortMjsPath = path.join(nodeModulesPath, 'ort.min.mjs');
|
|
85
|
+
copyIfExists(ortMjsPath, path.join(MODELS_DIR, 'ort.min.mjs'), 'ORT ESM Script');
|
|
83
86
|
} else {
|
|
84
87
|
console.log('Warning: onnxruntime-web not found. Ensuring high-speed browser execution requires "npm install".');
|
|
85
88
|
}
|