@omote/core 0.1.0 → 0.1.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/chunk-C3Y37HKD.mjs +26378 -0
- package/dist/chunk-C3Y37HKD.mjs.map +1 -0
- package/dist/index.js +26539 -155
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/dist/transformers.web-4C62MDO6.mjs +1724 -0
- package/dist/transformers.web-4C62MDO6.mjs.map +1 -0
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
env,
|
|
3
|
+
pipeline3
|
|
4
|
+
} from "./chunk-C3Y37HKD.mjs";
|
|
5
|
+
|
|
1
6
|
// src/events/EventEmitter.ts
|
|
2
7
|
var EventEmitter = class {
|
|
3
8
|
constructor() {
|
|
@@ -2931,7 +2936,6 @@ LAM_BLENDSHAPES.forEach((name, index) => {
|
|
|
2931
2936
|
var UPPER_FACE_SET = new Set(UPPER_FACE_BLENDSHAPES);
|
|
2932
2937
|
|
|
2933
2938
|
// src/inference/WhisperInference.ts
|
|
2934
|
-
import { pipeline, env } from "@huggingface/transformers";
|
|
2935
2939
|
var logger4 = createLogger("Whisper");
|
|
2936
2940
|
var WhisperInference = class _WhisperInference {
|
|
2937
2941
|
constructor(config = {}) {
|
|
@@ -3026,7 +3030,7 @@ var WhisperInference = class _WhisperInference {
|
|
|
3026
3030
|
};
|
|
3027
3031
|
logger4.info("Forcing WebGPU execution providers");
|
|
3028
3032
|
}
|
|
3029
|
-
this.pipeline = await
|
|
3033
|
+
this.pipeline = await pipeline3(
|
|
3030
3034
|
"automatic-speech-recognition",
|
|
3031
3035
|
modelName,
|
|
3032
3036
|
pipelineOptions
|
|
@@ -4529,9 +4533,8 @@ Emotion2VecInference.isWebGPUAvailable = isWebGPUAvailable;
|
|
|
4529
4533
|
|
|
4530
4534
|
// src/inference/ChatterboxTurboInference.ts
|
|
4531
4535
|
import ort from "onnxruntime-web/webgpu";
|
|
4532
|
-
import { AutoTokenizer, env as env2 } from "@huggingface/transformers";
|
|
4533
4536
|
var logger9 = createLogger("ChatterboxTurbo");
|
|
4534
|
-
|
|
4537
|
+
env.allowLocalModels = true;
|
|
4535
4538
|
ort.env.wasm.wasmPaths = "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.23.2/dist/";
|
|
4536
4539
|
|
|
4537
4540
|
// src/inference/SafariSpeechRecognition.ts
|
|
@@ -6424,8 +6427,8 @@ async function nukeBrowserCaches(preventRecreation = false) {
|
|
|
6424
6427
|
totalDeleted: deletedCount
|
|
6425
6428
|
});
|
|
6426
6429
|
if (preventRecreation) {
|
|
6427
|
-
const { env:
|
|
6428
|
-
|
|
6430
|
+
const { env: env2 } = await import("./transformers.web-4C62MDO6.mjs");
|
|
6431
|
+
env2.useBrowserCache = false;
|
|
6429
6432
|
logger11.warn("Browser cache creation disabled (env.useBrowserCache = false)");
|
|
6430
6433
|
}
|
|
6431
6434
|
return deletedCount;
|