transcribe-cpp 0.1.2 → 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.
Files changed (2) hide show
  1. package/dist/types.d.ts +8 -6
  2. 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 selects the auto / first
90
- * device). `null` when this came from `model.device`, since
91
- * `transcribe_model_get_device` does not expose an index; correlate such a
92
- * device back to {@link getAvailableBackends} by `deviceId` / `name`
93
- * instead. Order-dependent and not stable across driver updates or hosts. */
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 / first matching device. */
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.2",
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.2",
55
- "@transcribe-cpp/darwin-x64-cpu": "0.1.2",
56
- "@transcribe-cpp/linux-x64-cpu-vulkan": "0.1.2",
57
- "@transcribe-cpp/linux-arm64-cpu-vulkan": "0.1.2",
58
- "@transcribe-cpp/win32-x64-cpu-vulkan": "0.1.2"
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",