@qvac/transcription-whispercpp 0.6.2 → 0.6.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/README.md CHANGED
@@ -128,16 +128,16 @@ $env:VCPKG_ROOT = "C:\path\to\vcpkg"
128
128
 
129
129
  **Linux:**
130
130
  ```bash
131
- # Ubuntu/Debian
131
+ # Ubuntu/Debian — includes Clang and libc++ required by the native addon
132
132
  sudo apt update
133
- sudo apt install build-essential cmake git pkg-config
133
+ sudo apt install clang libc++-dev libc++abi-dev build-essential cmake git pkg-config
134
134
 
135
135
  # CentOS/RHEL/Fedora
136
136
  sudo yum groupinstall "Development Tools"
137
- sudo yum install cmake git pkgconfig
137
+ sudo yum install cmake git pkgconfig clang
138
138
  # or for newer versions:
139
139
  sudo dnf groupinstall "Development Tools"
140
- sudo dnf install cmake git pkgconfig
140
+ sudo dnf install cmake git pkgconfig clang
141
141
  ```
142
142
 
143
143
  **macOS:**
@@ -206,6 +206,18 @@ This command runs the complete build sequence:
206
206
  2. `bare-make build` - Compiles the native C++ addon
207
207
  3. `bare-make install` - Installs the built addon
208
208
 
209
+ #### Building with Vulkan GPU Acceleration
210
+
211
+ On Linux, Android, and Windows, Vulkan support can be enabled at build time. Ensure the [Vulkan SDK](#gpu-acceleration-optional) is installed, then pass `-D ENABLE_VULKAN=ON` during the generate step:
212
+
213
+ ```bash
214
+ bare-make generate -D ENABLE_VULKAN=ON
215
+ bare-make build
216
+ bare-make install
217
+ ```
218
+
219
+ CI prebuilds for Linux, Android, and Windows include Vulkan by default. macOS and iOS use Metal instead.
220
+
209
221
  #### Running Tests
210
222
 
211
223
  After building, you can run the test suite:
@@ -261,6 +273,20 @@ Most users interact with the addon exclusively through `index.js`. From that ent
261
273
  | `whisperConfig` | *(any `whisper_full_params` key)* | Forwarded untouched. We surface convenience defaults in `index.js`, but every whisper.cpp flag is accepted—see [Advanced configuration](#advanced-configuration). |
262
274
  | `miscConfig` | `caption_enabled` | Formats segments with `<\|start\|>..<\|end\|>` markers |
263
275
 
276
+ #### GPU acceleration is opt-in
277
+
278
+ `use_gpu` defaults to `false`. To enable Vulkan (Linux/Windows/Android) or Metal (macOS/iOS) acceleration, set `use_gpu: true` explicitly in `contextParams`:
279
+
280
+ ```javascript
281
+ const config = {
282
+ contextParams: {
283
+ model: './models/ggml-tiny.bin',
284
+ use_gpu: true, // opt-in to GPU
285
+ gpu_device: 0
286
+ }
287
+ }
288
+ ```
289
+
264
290
  #### Context keys that force a full reload
265
291
 
266
292
  Internally `WhisperModel::configContextIsChanged()` watches `model`, `use_gpu`, `flash_attn` and `gpu_device`. If any of these change we must:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/transcription-whispercpp",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "transcription addon for qvac",
5
5
  "addon": true,
6
6
  "engines": {
@@ -12,6 +12,7 @@
12
12
  "build": "bare-make generate && bare-make build && bare-make install",
13
13
  "test:unit": "brittle-bare test/unit/**/*.test.js",
14
14
  "test:integration": "brittle-bare test/integration/addon.test.js",
15
+ "test:benchmark:rtf": "brittle-bare test/benchmark/rtf-benchmark.test.js",
15
16
  "test:integration:long": "brittle-bare test/integration/**/longES.test.js",
16
17
  "test:cpp:build": "bare-make generate -D BUILD_TESTING=ON && bare-make build --target test-whisper-core && bare-make install",
17
18
  "test:cpp:run": "cd build/addon/tests/ && LLVM_PROFILE_FILE=default.profraw ./test-whisper-core --gtest_output=xml:cpp-test-results.xml",
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.6.2"
10
+ "version": "0.6.3"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.6.2"
10
+ "version": "0.6.3"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.6.2"
10
+ "version": "0.6.3"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.6.2"
10
+ "version": "0.6.3"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.6.2"
10
+ "version": "0.6.3"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [