HoneyTian commited on
Commit
9e67bc2
·
1 Parent(s): 5deec0c
Files changed (1) hide show
  1. 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 uint32 = uint32(silenceTime * 1e3)
26
- var speechPadTimeMs uint32 = uint32(speechPadTime * 1e3)
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,