Spaces:
Running
Running
jhj0517
commited on
Commit
·
471a073
1
Parent(s):
8f282e8
added info to the VAD parameter
Browse files
app.py
CHANGED
|
@@ -141,10 +141,17 @@ class App:
|
|
| 141 |
cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=False, interactive=True)
|
| 142 |
sd_threshold = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label="Speech Threshold", value=0.5,
|
| 143 |
info="Lower it to be more sensitive to small sounds.")
|
| 144 |
-
nb_min_speech_duration_ms = gr.Number(label="Minimum Speech Duration (ms)", precision=0, value=250
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
with gr.Accordion("Diarization", open=False):
|
| 150 |
cb_diarize = gr.Checkbox(label="Enable Diarization")
|
|
|
|
| 141 |
cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=False, interactive=True)
|
| 142 |
sd_threshold = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label="Speech Threshold", value=0.5,
|
| 143 |
info="Lower it to be more sensitive to small sounds.")
|
| 144 |
+
nb_min_speech_duration_ms = gr.Number(label="Minimum Speech Duration (ms)", precision=0, value=250,
|
| 145 |
+
info="Final speech chunks shorter than this time are thrown out")
|
| 146 |
+
nb_max_speech_duration_s = gr.Number(label="Maximum Speech Duration (s)", value=9999,
|
| 147 |
+
info="Maximum duration of speech chunks in \"seconds\". Chunks longer"
|
| 148 |
+
" than this time will be split at the timestamp of the last silence that"
|
| 149 |
+
" lasts more than 100ms (if any), to prevent aggressive cutting.")
|
| 150 |
+
nb_min_silence_duration_ms = gr.Number(label="Minimum Silence Duration (ms)", precision=0, value=2000,
|
| 151 |
+
info="In the end of each speech chunk wait for this time"
|
| 152 |
+
" before separating it")
|
| 153 |
+
nb_speech_pad_ms = gr.Number(label="Speech Padding (ms)", precision=0, value=400,
|
| 154 |
+
info="Final speech chunks are padded by this time each side")
|
| 155 |
|
| 156 |
with gr.Accordion("Diarization", open=False):
|
| 157 |
cb_diarize = gr.Checkbox(label="Enable Diarization")
|