feat: add Deepgram streaming transcription mode#280
Open
sjawhar wants to merge 1 commit intopeteonrails:mainfrom
Open
feat: add Deepgram streaming transcription mode#280sjawhar wants to merge 1 commit intopeteonrails:mainfrom
sjawhar wants to merge 1 commit intopeteonrails:mainfrom
Conversation
1b8a5af to
edc7e0e
Compare
Also fixes audio clipping at recording start and end: - send_notification() changed from async/await to fire-and-forget via tokio::spawn, eliminating 50-200ms dbus latency before audio capture - finish_streaming_recording() now sends final audio samples to Deepgram before closing, instead of discarding them
edc7e0e to
e884cca
Compare
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 real-time streaming transcription via Deepgram's WebSocket API as a new whisper mode (
streaming). Audio is transcribed as you speak, with results appearing after recording stops.What's included
Core streaming client (
src/transcribe/deepgram.rs):deepgramcrateDropimpl that aborts the background WS task on cancelDaemon integration (
src/daemon.rs):build_deepgram_config()with configurable sample rate passthroughConfiguration (
src/config.rs,src/cli.rs,src/main.rs):mode = "streaming"in config file--whisper-mode streamingCLI flagVOXTYPE_WHISPER_MODEenvironment variable--streaming-model,--streaming-endpoint,--streaming-api-keyflagsVOXTYPE_DEEPGRAM_API_KEYenvironment variablevoxtype configoutput (API key masked)Documentation:
docs/CONFIGURATION.md- streaming config reference with examplesdocs/USER_MANUAL.md- setup guide, usage, comparison with local modedocs/TROUBLESHOOTING.md- common streaming errors and fixesUsage
Or via environment:
Testing
cargo test --lib)