fix(example): add native desktop capture to Tauri transcription - #326
Open
Raphjacksun7 wants to merge 8 commits into
Open
fix(example): add native desktop capture to Tauri transcription#326Raphjacksun7 wants to merge 8 commits into
Raphjacksun7 wants to merge 8 commits into
Conversation
added 8 commits
September 4, 2026 12:01
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.
What this adds
This example is a Tauri 2 desktop application for live Deepgram Nova-3 transcription. Its Rust process captures one explicit input with PocketStation and sends linear16 audio through the Deepgram Rust SDK. The TypeScript window selects the input and displays interim and final transcripts with speaker labels.
Available inputs:
The microphone is never opened unless the user selects it.
Why PocketStation
cpalcan open audio devices, but it does not provide selected-application or desktop-output capture consistently across macOS, Windows, and Linux. PocketStation uses the native Core Audio, WASAPI, and PipeWire implementations behind the same RustSessionAPI and keeps capture out of the Tauri frontend.This closes #291.
Verification
DEEPGRAM_API_KEY=test python3 examples/340-tauri-live-transcription-rust-ts/tests/test_example.pypnpm buildcargo test --lockedcargo clippy --locked --all-targets -- -D warningspnpm tauri buildon macOS ARM64cargo testand strict Clippy on a Windows 11 guest with theaarch64-pc-windows-msvcRust toolchainPocketStation
1.1.10, Deepgram0.10.1, and Tauri2.11.5are installed from their public registries. Native system-audio capture was also checked on physical macOS against PocketStation1.1.10.The Windows result is bound to commit
fa0a0ed3d74f92b8913cda444a6c8eb280ec7019; its JSON report has SHA-2560e6179676ed0c524695896a6e2a5d12120a68197afcd20e10a5888d9ea5ef4d5. The automated service call is credential-aware and exits with status 2 whenDEEPGRAM_API_KEYis unavailable. I did not record a live Deepgram service result without that credential, and the Windows guest result verifies compilation and tests rather than physical audio hardware.