@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.mjs CHANGED
@@ -2086,7 +2086,7 @@ function isSafari() {
2086
2086
  return /safari/.test(ua) && !/chrome|crios|fxios|chromium|edg/.test(ua);
2087
2087
  }
2088
2088
  function shouldUseCpuLipSync() {
2089
- return isSafari();
2089
+ return isSafari() || isIOS();
2090
2090
  }
2091
2091
  function isSpeechRecognitionAvailable() {
2092
2092
  if (typeof window === "undefined") return false;
@@ -3253,7 +3253,7 @@ function createLipSync(config) {
3253
3253
  useCpu = false;
3254
3254
  logger6.info("Forcing GPU lip sync model (Wav2Vec2)");
3255
3255
  } else {
3256
- useCpu = isSafari();
3256
+ useCpu = shouldUseCpuLipSync();
3257
3257
  logger6.info("Auto-detected lip sync model", {
3258
3258
  useCpu,
3259
3259
  isSafari: isSafari()