Spaces:
Running
Running
update
Browse files- nx_vad/nx_vad.go +2 -2
- silero_vad/main.go +1 -1
nx_vad/nx_vad.go
CHANGED
@@ -11,13 +11,13 @@ func main () {
|
|
11 |
filenamePtr := flag.String("filename", "", "input wav audio file")
|
12 |
silenceTimePtr := flag.Float64("silence_time", 0.0, "silence time in seconds")
|
13 |
longestActivatePtr := flag.Float64("longest_activate", 0.0, "longest activate time in seconds")
|
14 |
-
sampleRatePtr := flag.
|
15 |
flag.Parse()
|
16 |
|
17 |
var filename string = *filenamePtr
|
18 |
var silenceTime float32 = float32(*silenceTimePtr)
|
19 |
var longestActivate float32 = float32(*longestActivatePtr)
|
20 |
-
var sampleRate uint32 =
|
21 |
fmt.Println(filename)
|
22 |
|
23 |
var wavInfo audio.WavInfoType
|
|
|
11 |
filenamePtr := flag.String("filename", "", "input wav audio file")
|
12 |
silenceTimePtr := flag.Float64("silence_time", 0.0, "silence time in seconds")
|
13 |
longestActivatePtr := flag.Float64("longest_activate", 0.0, "longest activate time in seconds")
|
14 |
+
sampleRatePtr := flag.Uint64("sample_rate", 8000, "sample rate")
|
15 |
flag.Parse()
|
16 |
|
17 |
var filename string = *filenamePtr
|
18 |
var silenceTime float32 = float32(*silenceTimePtr)
|
19 |
var longestActivate float32 = float32(*longestActivatePtr)
|
20 |
+
var sampleRate uint32 = uint32(*sampleRatePtr)
|
21 |
fmt.Println(filename)
|
22 |
|
23 |
var wavInfo audio.WavInfoType
|
silero_vad/main.go
CHANGED
@@ -14,7 +14,7 @@ func main() {
|
|
14 |
filenamePtr := flag.String("filename", "", "input wav audio file")
|
15 |
silenceTimePtr := flag.Float64("silence_time", 0.1, "in the end of each speech chunk wait for min_silence_duration_ms before separating it")
|
16 |
speechPadTimePtr := flag.Float64("speech_pad_time", 0.03, "final speech chunks are padded by speech_pad_ms each side")
|
17 |
-
sampleRatePtr := flag.
|
18 |
flag.Parse()
|
19 |
|
20 |
var modelPath string = *modelPathPtr
|
|
|
14 |
filenamePtr := flag.String("filename", "", "input wav audio file")
|
15 |
silenceTimePtr := flag.Float64("silence_time", 0.1, "in the end of each speech chunk wait for min_silence_duration_ms before separating it")
|
16 |
speechPadTimePtr := flag.Float64("speech_pad_time", 0.03, "final speech chunks are padded by speech_pad_ms each side")
|
17 |
+
sampleRatePtr := flag.Uint64("sample_rate", 8000, "sample rate")
|
18 |
flag.Parse()
|
19 |
|
20 |
var modelPath string = *modelPathPtr
|