@omote/core 0.2.0 → 0.2.1
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/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -366,12 +366,13 @@ declare function isSafari(): boolean;
|
|
|
366
366
|
/**
|
|
367
367
|
* Recommend using CPU-optimized lip sync model (wav2arkit_cpu)
|
|
368
368
|
*
|
|
369
|
-
* Safari
|
|
370
|
-
*
|
|
369
|
+
* All WebKit browsers (Safari macOS, Safari iOS, Chrome iOS, Firefox iOS)
|
|
370
|
+
* have ONNX Runtime WebGPU JSEP bugs that crash session creation, and the
|
|
371
|
+
* 384MB LAM model stack-overflows in WASM mode.
|
|
371
372
|
* The wav2arkit_cpu model (1.8MB) provides identical 52 ARKit blendshape
|
|
372
373
|
* output at 22x real-time on CPU/WASM.
|
|
373
374
|
*
|
|
374
|
-
* @returns true if on Safari (should use CPU lip sync model)
|
|
375
|
+
* @returns true if on Safari or any iOS browser (should use CPU lip sync model)
|
|
375
376
|
*/
|
|
376
377
|
declare function shouldUseCpuLipSync(): boolean;
|
|
377
378
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -366,12 +366,13 @@ declare function isSafari(): boolean;
|
|
|
366
366
|
/**
|
|
367
367
|
* Recommend using CPU-optimized lip sync model (wav2arkit_cpu)
|
|
368
368
|
*
|
|
369
|
-
* Safari
|
|
370
|
-
*
|
|
369
|
+
* All WebKit browsers (Safari macOS, Safari iOS, Chrome iOS, Firefox iOS)
|
|
370
|
+
* have ONNX Runtime WebGPU JSEP bugs that crash session creation, and the
|
|
371
|
+
* 384MB LAM model stack-overflows in WASM mode.
|
|
371
372
|
* The wav2arkit_cpu model (1.8MB) provides identical 52 ARKit blendshape
|
|
372
373
|
* output at 22x real-time on CPU/WASM.
|
|
373
374
|
*
|
|
374
|
-
* @returns true if on Safari (should use CPU lip sync model)
|
|
375
|
+
* @returns true if on Safari or any iOS browser (should use CPU lip sync model)
|
|
375
376
|
*/
|
|
376
377
|
declare function shouldUseCpuLipSync(): boolean;
|
|
377
378
|
/**
|
package/dist/index.js
CHANGED
|
@@ -28970,7 +28970,7 @@ function isSafari() {
|
|
|
28970
28970
|
return /safari/.test(ua) && !/chrome|crios|fxios|chromium|edg/.test(ua);
|
|
28971
28971
|
}
|
|
28972
28972
|
function shouldUseCpuLipSync() {
|
|
28973
|
-
return isSafari();
|
|
28973
|
+
return isSafari() || isIOS();
|
|
28974
28974
|
}
|
|
28975
28975
|
function isSpeechRecognitionAvailable() {
|
|
28976
28976
|
if (typeof window === "undefined") return false;
|
|
@@ -30138,7 +30138,7 @@ function createLipSync(config) {
|
|
|
30138
30138
|
useCpu = false;
|
|
30139
30139
|
logger6.info("Forcing GPU lip sync model (Wav2Vec2)");
|
|
30140
30140
|
} else {
|
|
30141
|
-
useCpu =
|
|
30141
|
+
useCpu = shouldUseCpuLipSync();
|
|
30142
30142
|
logger6.info("Auto-detected lip sync model", {
|
|
30143
30143
|
useCpu,
|
|
30144
30144
|
isSafari: isSafari()
|