Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions frontend/src-tauri/src/audio/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,12 +719,9 @@ impl AudioPipeline {
// For now, we log it for monitoring and potential optimization
let _ = (mic_device_name, mic_device_kind, system_device_name, system_device_kind);

// Create VAD processor with balanced redemption time for speech accumulation
// The VAD processor now handles 48kHz->16kHz resampling internally
// This bridges natural pauses without excessive fragmentation
// For mac os core audio, 900ms, for windows 400ms seems good

let redemption_time = if cfg!(target_os = "macos") { 400 } else { 400 };
// Match the continuous-speech VAD tuning in vad.rs so natural pauses do not
// split one-shot transcription into short, context-poor segments.
let redemption_time = 2_000;

let vad_processor = match ContinuousVadProcessor::new(sample_rate, redemption_time) {
Ok(processor) => {
Expand Down