Spaces:
Sleeping
Sleeping
update
Browse files
README.md
CHANGED
@@ -13,12 +13,12 @@ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-
|
|
13 |
### Vad GO
|
14 |
|
15 |
```text
|
16 |
-
docker build -t vad_go:
|
17 |
|
18 |
docker run -itd \
|
19 |
--name vad_go \
|
20 |
--network host \
|
21 |
-
vad_go:
|
22 |
|
23 |
http://10.75.27.247:7860
|
24 |
```
|
|
|
13 |
### Vad GO
|
14 |
|
15 |
```text
|
16 |
+
docker build -t vad_go:v20241211_1644 .
|
17 |
|
18 |
docker run -itd \
|
19 |
--name vad_go \
|
20 |
--network host \
|
21 |
+
vad_go:v20241211_1644
|
22 |
|
23 |
http://10.75.27.247:7860
|
24 |
```
|
main.py
CHANGED
@@ -37,12 +37,12 @@ def process_uploaded_file(
|
|
37 |
filename: str,
|
38 |
silence_time: float = 0.3,
|
39 |
longest_activate: float = 3.0,
|
40 |
-
|
41 |
) -> Tuple[str, str]:
|
42 |
if vad_engine == "nx_vad":
|
43 |
return run_nx_vad(filename, silence_time, longest_activate)
|
44 |
elif vad_engine == "silero_vad":
|
45 |
-
return run_silero_vad(filename, silence_time,
|
46 |
else:
|
47 |
return f"vad engine invalid: {vad_engine}", ""
|
48 |
|
|
|
37 |
filename: str,
|
38 |
silence_time: float = 0.3,
|
39 |
longest_activate: float = 3.0,
|
40 |
+
threshold: float = 0.5,
|
41 |
) -> Tuple[str, str]:
|
42 |
if vad_engine == "nx_vad":
|
43 |
return run_nx_vad(filename, silence_time, longest_activate)
|
44 |
elif vad_engine == "silero_vad":
|
45 |
+
return run_silero_vad(filename, silence_time, threshold)
|
46 |
else:
|
47 |
return f"vad engine invalid: {vad_engine}", ""
|
48 |
|