Conversation
…r.cpp - crates/wisp-pulseaudio: new Linux AudioSource capturing the default sink's .monitor via libpulse-binding (works on PulseAudio proper and PipeWire's pipewire-pulse). Dedicated capture thread, bounded frame channel, clean shutdown -- same lifecycle as the WASAPI loopback crate. - app: open_system_capture() for Linux, wisp-pulseaudio + wisp-aec + wisp-engine-whisper-cpp cfg deps; mic-only fallback unchanged. - wisp-engine-whisper-cpp: extend the whisper-vulkan feature to Linux (ggml-vulkan + CPU fallback); family_runnable/test cfg gates updated. - Packaging: tauri.linux.conf.json stages linux-runtime/*.so into the bundle, build.rs emits $ORIGIN rpaths and stages all sherpa/onnxruntime shared libs; deb + appimage bundle targets enabled. - release.yml: ubuntu-22.04 job with the system deps the port needs (webkit2gtk, libpulse, meson/ninja for webrtc-sys, Vulkan/SPIR-V tools, libclang for bindgen).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Linux support to Wisp, following the existing platform-crate architecture
(
wisp-loopbackon Windows,wisp-screencaptureon macOS):crates/wisp-pulseaudio(new): captures the default PulseAudio sink's.monitorsource on a dedicated capture thread (PulseAudio objects arethread-affine), feeding the shared 16 kHz mono
f32frame channel. Works onPulseAudio proper and on PipeWire via
pipewire-pulse. Includes a readinesstimeout, a 250 ms heartbeat so
next_framenever blocks indefinitely onsilent output, panic-safe teardown (
catch_unwindcloses the channel),DONT_MOVEso PA module-rescue cannot rebind the stream, and unit tests forthe pure helpers (frame decoding, sink-monitor naming, wait logic).
open_system_capture()returns the monitor source on Linux;wisp-aec(WebRTC AEC3) is enabled for Linux the same way as macOS, with theexisting passthrough fallback.
whisper-vulkancargo feature now also applies toLinux, building the vendored ggml Vulkan backend and linking the system
Vulkan loader.
family_runnable/ accelerator reporting treat Vulkan as theLinux GPU path, matching Windows. Core ML encoder availability is now
macOS-only (it could never work on Linux builds).
tauri.linux.conf.jsonbundles the staged sherpa/onnxruntimeshared libraries plus
libvulkan.so.1underlinux-runtime/, declares thereal runtime
Depends:for the deb (webkit2gtk, gtk, pulse, alsa,libvulkan1, ...), and bundles deb + appimage targets.
build.rsstages theruntime libs and links with
--disable-new-dtagsso the binary getsDT_RPATH=$ORIGIN:$ORIGIN/../lib/Wisp(RUNPATH would not propagate totransitive deps of the bundled libs).
linux-appjob onubuntu-22.04compiles the app inevery PR (default and
whisper-vulkanbuilds), and the release matrix gainsan Ubuntu 22.04 leg producing
.deb+.AppImage. Two non-obvious toolchaindetails are handled: jammy's archive has no
glslc(pulled from LunarG'sofficial repo) and its meson 0.61 is older than the vendored
webrtc-audio-processing
meson_version >= 0.63requirement (installed viapip instead).
Verification (Ubuntu 24.04, GNOME/X11, PipeWire via pipewire-pulse)
cargo check,clippy,fmtclean for the workspace and the new crate;8/8 new unit tests pass; 51/51
wisp-modelstests pass with--all-features.cadence) without blocking; a 440 Hz tone played through the default sink is
captured via the
.monitorsource (measured frames match wall time at16 kHz); stop + restart capture works without hangs.
.deb+.AppImage, launched the app, downloaded amodel, recorded a meeting with synthesized speech playing through the
speakers -- the system-audio monitor path transcribed it in real time and
attributed it to "them".
Depends:, bundledsherpa/onnxruntime/vulkan libs, working
$ORIGIN-relative RPATH. Therelease build targets Ubuntu 22.04 to keep the glibc floor low; the full
pipeline (including the vendored ggml Vulkan build and the WebRTC AEC meson
build) was verified inside an
ubuntu:22.04container.Notes
as the WASAPI loopback behavior.
present.