transcribe-cpp 0.2.3 → 0.2.4
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/ffi.js +3 -6
- package/package.json +6 -6
package/dist/ffi.js
CHANGED
|
@@ -10,12 +10,9 @@
|
|
|
10
10
|
import koffi from "koffi";
|
|
11
11
|
import { defineTypes } from "./_generated.js";
|
|
12
12
|
// Koffi defaults async FFI workers to a 128 KiB stack. That is too small for
|
|
13
|
-
// ggml Vulkan model initialization on Windows
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
// Preserve a larger application-provided value because Koffi configuration is
|
|
17
|
-
// process-global.
|
|
18
|
-
const MIN_ASYNC_STACK_SIZE = 512 * 1024;
|
|
13
|
+
// ggml Vulkan model initialization on Windows for AMD and Intel GPU's.
|
|
14
|
+
// Raise it to 2MB.
|
|
15
|
+
const MIN_ASYNC_STACK_SIZE = 2 * 1024 * 1024;
|
|
19
16
|
const koffiConfig = koffi.config();
|
|
20
17
|
if ((koffiConfig.async_stack_size ?? 0) < MIN_ASYNC_STACK_SIZE) {
|
|
21
18
|
koffi.config({ async_stack_size: MIN_ASYNC_STACK_SIZE });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "transcribe-cpp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "TypeScript/Node.js bindings for transcribe.cpp — a C/C++ speech-to-text library built on ggml",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"koffi": "^3.0.2"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@transcribe-cpp/darwin-arm64-metal": "0.2.
|
|
55
|
-
"@transcribe-cpp/darwin-x64-cpu": "0.2.
|
|
56
|
-
"@transcribe-cpp/linux-x64-cpu-vulkan": "0.2.
|
|
57
|
-
"@transcribe-cpp/linux-arm64-cpu-vulkan": "0.2.
|
|
58
|
-
"@transcribe-cpp/win32-x64-cpu-vulkan": "0.2.
|
|
54
|
+
"@transcribe-cpp/darwin-arm64-metal": "0.2.4",
|
|
55
|
+
"@transcribe-cpp/darwin-x64-cpu": "0.2.4",
|
|
56
|
+
"@transcribe-cpp/linux-x64-cpu-vulkan": "0.2.4",
|
|
57
|
+
"@transcribe-cpp/linux-arm64-cpu-vulkan": "0.2.4",
|
|
58
|
+
"@transcribe-cpp/win32-x64-cpu-vulkan": "0.2.4"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^22.0.0",
|