rvsttd: increase fade-out to 25ms

This commit is contained in:
2026-08-17 07:41:08 +00:00
parent c174576e14
commit a80bd8f669
+1 -1
View File
@@ -352,7 +352,7 @@ fn transcriber_loop(
// Apply 5ms fade-out to the last chunk, then feed to both Moonshine and recorder // Apply 5ms fade-out to the last chunk, then feed to both Moonshine and recorder
if let Some(mut chunk) = held_chunk.take() { if let Some(mut chunk) = held_chunk.take() {
let fade_samples = (SAMPLE_RATE as usize * 10) / 1000; // 10ms let fade_samples = (SAMPLE_RATE as usize * 25) / 1000; // 25ms
if chunk.len() > fade_samples { if chunk.len() > fade_samples {
let start = chunk.len() - fade_samples; let start = chunk.len() - fade_samples;
for i in 0..fade_samples { for i in 0..fade_samples {