transcribe-cpp 0.1.1 → 0.1.3
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/types.d.ts +8 -6
- package/package.json +6 -6
package/dist/types.d.ts
CHANGED
|
@@ -86,17 +86,19 @@ export interface BackendInfo {
|
|
|
86
86
|
* to refresh; backend-defined and not comparable across device kinds. */
|
|
87
87
|
memoryFree: number;
|
|
88
88
|
/** Registry index of this device — the value to pass as
|
|
89
|
-
* {@link ModelOptions.gpuDevice} to select it (0
|
|
90
|
-
*
|
|
91
|
-
* `transcribe_model_get_device` does not expose an
|
|
92
|
-
* device back to {@link getAvailableBackends} by
|
|
93
|
-
* instead. Order-dependent and not stable across
|
|
89
|
+
* {@link ModelOptions.gpuDevice} to select it (0 means auto: discrete
|
|
90
|
+
* GPUs are probed before integrated). `null` when this came from
|
|
91
|
+
* `model.device`, since `transcribe_model_get_device` does not expose an
|
|
92
|
+
* index; correlate such a device back to {@link getAvailableBackends} by
|
|
93
|
+
* `deviceId` / `name` instead. Order-dependent and not stable across
|
|
94
|
+
* driver updates or hosts. */
|
|
94
95
|
index: number | null;
|
|
95
96
|
}
|
|
96
97
|
export interface ModelOptions {
|
|
97
98
|
/** "auto" (default), or an explicit backend. */
|
|
98
99
|
backend?: Backend;
|
|
99
|
-
/** GPU device registry index. 0 means auto
|
|
100
|
+
/** GPU device registry index. 0 means auto: the first device that
|
|
101
|
+
* initializes, probing discrete GPUs before integrated. */
|
|
100
102
|
gpuDevice?: number;
|
|
101
103
|
}
|
|
102
104
|
export interface SessionOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "transcribe-cpp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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.1.
|
|
55
|
-
"@transcribe-cpp/darwin-x64-cpu": "0.1.
|
|
56
|
-
"@transcribe-cpp/linux-x64-cpu-vulkan": "0.1.
|
|
57
|
-
"@transcribe-cpp/linux-arm64-cpu-vulkan": "0.1.
|
|
58
|
-
"@transcribe-cpp/win32-x64-cpu-vulkan": "0.1.
|
|
54
|
+
"@transcribe-cpp/darwin-arm64-metal": "0.1.3",
|
|
55
|
+
"@transcribe-cpp/darwin-x64-cpu": "0.1.3",
|
|
56
|
+
"@transcribe-cpp/linux-x64-cpu-vulkan": "0.1.3",
|
|
57
|
+
"@transcribe-cpp/linux-arm64-cpu-vulkan": "0.1.3",
|
|
58
|
+
"@transcribe-cpp/win32-x64-cpu-vulkan": "0.1.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^22.0.0",
|