Compare commits
2 Commits
b8ee014cc3
...
mistress
| Author | SHA1 | Date | |
|---|---|---|---|
| a80bd8f669 | |||
| c174576e14 |
+1
-1
@@ -352,7 +352,7 @@ fn transcriber_loop(
|
||||
|
||||
// Apply 5ms fade-out to the last chunk, then feed to both Moonshine and recorder
|
||||
if let Some(mut chunk) = held_chunk.take() {
|
||||
let fade_samples = (SAMPLE_RATE as usize * 5) / 1000;
|
||||
let fade_samples = (SAMPLE_RATE as usize * 25) / 1000; // 25ms
|
||||
if chunk.len() > fade_samples {
|
||||
let start = chunk.len() - fade_samples;
|
||||
for i in 0..fade_samples {
|
||||
|
||||
Reference in New Issue
Block a user