rockdrigo commited on
Commit
3fad813
·
1 Parent(s): 9556d07

delete unused var

Browse files
Files changed (1) hide show
  1. voice_activity_controller.py +2 -4
voice_activity_controller.py CHANGED
@@ -11,7 +11,6 @@ class VoiceActivityController:
11
  sampling_rate = 16000,
12
  second_ofSilence = 0.5,
13
  second_ofSpeech = 0.25,
14
- second_ofMinRecording = 10,
15
  use_vad_result = True,
16
  activity_detected_callback=None,
17
  ):
@@ -29,13 +28,12 @@ class VoiceActivityController:
29
  self.sampling_rate = sampling_rate
30
  self.silence_limit = second_ofSilence * self.sampling_rate
31
  self.speech_limit = second_ofSpeech *self.sampling_rate
32
- self.MIN_RECORDING_LENGTH = second_ofMinRecording * self.sampling_rate
33
 
34
  self.use_vad_result = use_vad_result
35
  self.vad_iterator = VADIterator(
36
  model =self.model,
37
- threshold = 0.3,
38
- sampling_rate= 16000,
39
  min_silence_duration_ms = 500, #100
40
  speech_pad_ms = 400 #30
41
  )
 
11
  sampling_rate = 16000,
12
  second_ofSilence = 0.5,
13
  second_ofSpeech = 0.25,
 
14
  use_vad_result = True,
15
  activity_detected_callback=None,
16
  ):
 
28
  self.sampling_rate = sampling_rate
29
  self.silence_limit = second_ofSilence * self.sampling_rate
30
  self.speech_limit = second_ofSpeech *self.sampling_rate
 
31
 
32
  self.use_vad_result = use_vad_result
33
  self.vad_iterator = VADIterator(
34
  model =self.model,
35
+ threshold = 0.3, # 0.5
36
+ sampling_rate= self.sampling_rate,
37
  min_silence_duration_ms = 500, #100
38
  speech_pad_ms = 400 #30
39
  )