Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
chore(stt): drop the dead --cuda build variant
EtienneLescot9a7a57c4f103
diff --git a/.github/workflows/build-whisper-stt.yml b/.github/workflows/build-whisper-stt.ymlindex e63eba237..6f5b3de5b 100644--- a/.github/workflows/build-whisper-stt.yml+++ b/.github/workflows/build-whisper-stt.yml@@ -10,21 +10,11 @@ name: Build whisper-stt binaries## ponytail: one binary per platform is enough because whisper.cpp selects the# right backend at runtime (Metal on Apple Silicon, Vulkan on Windows/Linux,-# CPU fallback when no GPU/driver is available). A CUDA variant is supported-# by the build script but is not built by default; Vulkan already accelerates-# NVIDIA cards.+# CPU fallback when no GPU/driver is available). Vulkan already accelerates+# NVIDIA cards, so there is no separate CUDA build.on:workflow_dispatch:- inputs:- enable_cuda:- description: "Also build a CUDA variant when the host has an nvcc toolchain"- required: false- default: "false"- type: choice- options:- - "true"- - "false"push:paths:- "scripts/build-whisper-stt.sh"@@ -172,8 +162,6 @@ jobs:whisper-stt-build-${{ matrix.tag }}-${{ env.ImageOS }}-${{ env.ImageVersion }}-- name: Run whisper-stt build script- env:- ENABLE_CUDA: ${{ github.event.inputs.enable_cuda || 'false' }}run: bash scripts/build-whisper-stt.sh- name: Stage binaries for uploaddiff --git a/scripts/build-whisper-stt.sh b/scripts/build-whisper-stt.shindex ade88df57..dc4728141 100644--- a/scripts/build-whisper-stt.sh+++ b/scripts/build-whisper-stt.sh@@ -9,9 +9,8 @@# See technical-documentation/architecture/transcription-and-captions.md## Local use:-# bash scripts/build-whisper-stt.sh # default backend for host-# ENABLE_CUDA=ON bash scripts/build-whisper-stt.sh # also build CUDA variant-# bash scripts/build-whisper-stt.sh --clean # wipe build cache first+# bash scripts/build-whisper-stt.sh # default backend for host+# bash scripts/build-whisper-stt.sh --clean # wipe build cache first## The default backend per host:# macOS arm64 -> Metal@@ -36,20 +35,17 @@ fireadonly BUILD_ROOTCLEAN=0-CUDA_ENABLED="${ENABLE_CUDA:-OFF}"while [[ $# -gt 0 ]]; docase "$1" in--clean) CLEAN=1; shift ;;- --cuda) CUDA_ENABLED=ON; shift ;;-h|--help)cat <<-EOF- Usage: $0 [--clean] [--cuda]+ Usage: $0 [--clean]Builds whisper-stt-server and stages it under\`electron/native/bin/<os>-<arch>/\`.--clean Wipe the build cache before configuring.- --cuda Also build a CUDA variant (requires nvcc on PATH).EOFexit 0;;@@ -172,17 +168,6 @@ build_variant() {bin_name="${bin_name}.exe"fi- # If this is the primary (non-CUDA) variant, install it under the plain name.- # CUDA is kept as a side-by-side variant with a -cuda suffix.- local out_bin_name="${bin_name}"- if [[ "${variant_name}" == "cuda" ]]; then- if [[ "${OS_ARCH}" == win32-* ]]; then- out_bin_name="whisper-stt-server-cuda.exe"- else- out_bin_name="whisper-stt-server-cuda"- fi- fi-# CMake generator-specific output locations: Ninja drops the binary at the# build root and libraries under bin/; MSBuild (Visual Studio on Windows)# puts Release/ configurations under ${build_dir}/Release/ and bin/Release/.@@ -203,7 +188,7 @@ build_variant() {echo "FATAL: could not find whisper-stt-server binary in ${build_dir}" >&2exit 1fi- cp "${built_exe}" "${OUT_DIR}/${out_bin_name}"+ cp "${built_exe}" "${OUT_DIR}/${bin_name}"# Stage any shared libraries / backend sidecars that CMake produced.# Copy everything that looks like a ggml/whisper shared library, plus any@@ -256,7 +241,7 @@ libparakeet*.so|libparakeet*.so.*|\# never read, so a staging glob that matched nothing — which is precisely what# happened on macOS and Linux — still exited 0 and produced a green build.if [[ "${found_libs}" -eq 0 ]]; then- echo "FATAL: staged no shared libraries alongside ${out_bin_name}." >&2+ echo "FATAL: staged no shared libraries alongside ${bin_name}." >&2echo " Searched: ${search_dirs[*]}" >&2echo " The helper links ggml/whisper as shared libraries; without them" >&2echo " it cannot start. Check the sidecar glob in this script." >&2@@ -294,9 +279,9 @@ libparakeet*.so|libparakeet*.so.*|\# patchelf is needed: these binaries already carry RUNPATH=$ORIGIN.if [[ "${OS_ARCH}" == linux-* ]]; thenlocal gomp- gomp="$(ldd "${OUT_DIR}/${out_bin_name}" 2>/dev/null | awk '/libgomp\.so\.1/ {print $3; exit}')"+ gomp="$(ldd "${OUT_DIR}/${bin_name}" 2>/dev/null | awk '/libgomp\.so\.1/ {print $3; exit}')"if [[ -z "${gomp}" || ! -f "${gomp}" ]]; then- echo "FATAL: libgomp.so.1 is not resolvable for ${out_bin_name}." >&2+ echo "FATAL: libgomp.so.1 is not resolvable for ${bin_name}." >&2echo " Install it (libgomp1 on Debian/Ubuntu, libgomp on Fedora/Arch)." >&2echo " Without it the AppImage ships an STT stack that cannot load," >&2echo " which is silent until a user tries to transcribe." >&2@@ -308,12 +293,12 @@ libparakeet*.so|libparakeet*.so.*|\fifi- echo "[whisper-stt] built ${variant_name} -> ${OUT_DIR}/${out_bin_name}"+ echo "[whisper-stt] built ${variant_name} -> ${OUT_DIR}/${bin_name}"ls -la "${OUT_DIR}"}# ----------------------------------------------------------------------------# Primary variant (Metal/Vulkan/CPU depending on host).+# The one build: Metal/Vulkan/CPU depending on host.# ---------------------------------------------------------------------------DEFAULT_FLAG="$(backend_flag_for_host)"BUILD_FLAGS=()@@ -324,16 +309,4 @@ fi# (macOS x64/CPU has no DEFAULT_FLAG, so BUILD_FLAGS is genuinely empty here).build_variant "default" ${BUILD_FLAGS[@]+"${BUILD_FLAGS[@]}"}-# ----------------------------------------------------------------------------# Optional CUDA variant. Kept as a side-by-side binary for hosts that want-# maximum NVIDIA performance; the default Vulkan build already covers NVIDIA.-# ----------------------------------------------------------------------------if [[ "${CUDA_ENABLED}" == "ON" ]]; then- if ! command -v nvcc >/dev/null 2>&1; then- echo "Skipping CUDA variant: nvcc not on PATH" >&2- else- build_variant "cuda" "-DOSC_ENABLE_CUDA=ON"- fi-fi-echo "[whisper-stt] done. Binaries under: ${OUT_DIR}"diff --git a/technical-documentation/architecture/transcription-and-captions.md b/technical-documentation/architecture/transcription-and-captions.mdindex 205f58d0a..4a4288e28 100644--- a/technical-documentation/architecture/transcription-and-captions.md+++ b/technical-documentation/architecture/transcription-and-captions.md@@ -650,9 +650,15 @@ it deletes data`AxcutTranscript.language`. It now reports `whisper_full_lang_id()` — thedetected language under `"auto"`, the forced one otherwise.- **No CUDA build.** Vulkan already accelerates NVIDIA on Windows and- Linux, but a dedicated CUDA build can be added later via- `OSC_ENABLE_CUDA=ON`; the build script and CMake already accept the- flag, the default matrix doesn't build it yet.+ Linux. CMake still accepts `OSC_ENABLE_CUDA=ON`, so a CUDA-enabled+ helper can be built by passing that through to `cmake` — it installs+ under the ordinary `whisper-stt-server` name and reports+ `whispercpp-cuda` at runtime like any other backend. What was removed+ is the build script's `--cuda` flag, which built a SIDE-BY-SIDE+ `whisper-stt-server-cuda` binary: `candidateBinaryPaths()` only ever+ looks for the plain name, so that build could not be selected at+ runtime no matter what the host had. Nothing in the script or the CI+ matrix turns CUDA on today.- **No CoreML/ANE encoder.** Metal already covers Apple GPU; CoreML isa future perf refinement.- **HTTP integration test not on CI.** `npm run test:whisper-stt` does the