aadnk commited on
Commit
6cbe554
1 Parent(s): 02253c6

Disable segment padding for now.

Browse files

It seems to just make the timings worse.

Files changed (1) hide show
  1. src/vad.py +3 -2
src/vad.py CHANGED
@@ -25,8 +25,9 @@ SPEECH_TRESHOLD = 0.3
25
  MAX_SILENT_PERIOD = 10 # seconds
26
  MAX_MERGE_SIZE = 150 # Do not create segments larger than 2.5 minutes
27
 
28
- SEGMENT_PADDING_LEFT = 1 # Start detected text segment early
29
- SEGMENT_PADDING_RIGHT = 1 # End detected segments late
 
30
 
31
  # Whether to attempt to transcribe non-speech
32
  TRANSCRIBE_NON_SPEECH = False
 
25
  MAX_SILENT_PERIOD = 10 # seconds
26
  MAX_MERGE_SIZE = 150 # Do not create segments larger than 2.5 minutes
27
 
28
+ # Segment padding is disabled for now
29
+ SEGMENT_PADDING_LEFT = 0 # Start detected text segment early
30
+ SEGMENT_PADDING_RIGHT = 0 # End detected segments late
31
 
32
  # Whether to attempt to transcribe non-speech
33
  TRANSCRIBE_NON_SPEECH = False