Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Better whisper-ctranslate vad filter option

Chocobozzz07058e17c34e
diff --git a/packages/transcription/src/whisper/transcriber/ctranslate2-transcriber.ts b/packages/transcription/src/whisper/transcriber/ctranslate2-transcriber.ts
index de0a9c5080..6a55b10e32 100644
--- a/packages/transcription/src/whisper/transcriber/ctranslate2-transcriber.ts
+++ b/packages/transcription/src/whisper/transcriber/ctranslate2-transcriber.ts
@@ -37,6 +37,10 @@ export class Ctranslate2Transcriber extends OpenaiTranscriber {
'True',
'--vad_filter',
'true',
+ // Better precision with 5s of audio
+ // We mainly use vad_filter to improve language detection (first 30 seconds of the video, so no voice is problematic)
+ '--vad_min_silence_duration_ms',
+ '5000',
'--output_format',
'all',
'--output_dir',