Skip to content

Build your personal knowledge base with Trilium Notes

feat(desktop): commit continuous speech within about 10 seconds

Elian Doran934ccd047c75
diff --git a/apps/desktop/src/services/transcription/engine.ts b/apps/desktop/src/services/transcription/engine.ts
index fa56ba15c7..a69ea32ce3 100644
--- a/apps/desktop/src/services/transcription/engine.ts
+++ b/apps/desktop/src/services/transcription/engine.ts
@@ -77,7 +77,9 @@ export async function loadSherpaEngine(): Promise<SpeechEngine> {
threshold: 0.5,
minSilenceDuration: 0.5,
minSpeechDuration: 0.25,
- maxSpeechDuration: 20,
+ // Past this length, sherpa ends the segment at the next 0.1 s pause, so
+ // continuous speech is committed within about 10 s.
+ maxSpeechDuration: 8,
windowSize: VAD_WINDOW_SIZE
},
sampleRate: SAMPLE_RATE,