Spaces:
Running
Running
jhj0517
commited on
Commit
·
c1f12f6
1
Parent(s):
1fe0a69
add wildcard to the function
Browse files
modules/vad/silero_vad.py
CHANGED
|
@@ -78,6 +78,9 @@ class SileroVAD:
|
|
| 78 |
if self.model is None:
|
| 79 |
self.update_model()
|
| 80 |
|
|
|
|
|
|
|
|
|
|
| 81 |
threshold = vad_options.threshold
|
| 82 |
min_speech_duration_ms = vad_options.min_speech_duration_ms
|
| 83 |
max_speech_duration_s = vad_options.max_speech_duration_s
|
|
|
|
| 78 |
if self.model is None:
|
| 79 |
self.update_model()
|
| 80 |
|
| 81 |
+
if vad_options is None:
|
| 82 |
+
vad_options = VadOptions(**kwargs)
|
| 83 |
+
|
| 84 |
threshold = vad_options.threshold
|
| 85 |
min_speech_duration_ms = vad_options.min_speech_duration_ms
|
| 86 |
max_speech_duration_s = vad_options.max_speech_duration_s
|