Spaces:
Sleeping
Sleeping
update
Browse files- silero_vad/main.go +2 -2
silero_vad/main.go
CHANGED
@@ -22,8 +22,8 @@ func main() {
|
|
22 |
var speechPadTime float32 = float32(*speechPadTimePtr)
|
23 |
fmt.Println(filename)
|
24 |
|
25 |
-
var silenceTimeMs
|
26 |
-
var speechPadTimeMs
|
27 |
|
28 |
sd, err := speech.NewDetector(speech.DetectorConfig{
|
29 |
ModelPath: modelPath,
|
|
|
22 |
var speechPadTime float32 = float32(*speechPadTimePtr)
|
23 |
fmt.Println(filename)
|
24 |
|
25 |
+
var silenceTimeMs int = int(silenceTime * 1e3)
|
26 |
+
var speechPadTimeMs int = int(speechPadTime * 1e3)
|
27 |
|
28 |
sd, err := speech.NewDetector(speech.DetectorConfig{
|
29 |
ModelPath: modelPath,
|