Disable segment padding for now.
Browse filesIt seems to just make the timings worse.
- 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 |
-
|
29 |
-
|
|
|
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
|