abhi02072005 commited on
Commit
82f84b6
·
1 Parent(s): 89955d0
Files changed (1) hide show
  1. real.py +2 -2
real.py CHANGED
@@ -131,7 +131,7 @@ class LiveFootstepDetector:
131
  try:
132
  self.footstep_audio, self.sample_rate = extract_second_audio_librosa(
133
  file_path=audio_path,
134
- target_second=1,
135
  sample_rate=44100
136
  )
137
  self.audio_ready = True
@@ -720,7 +720,7 @@ class AudioGenerator:
720
  def generate_footstep(self, aud_path):
721
  arr, rate = extract_second_audio_librosa(
722
  file_path=aud_path,
723
- target_second=1,
724
  sample_rate=self.sample_rate
725
  )
726
 
 
131
  try:
132
  self.footstep_audio, self.sample_rate = extract_second_audio_librosa(
133
  file_path=audio_path,
134
+ target_second=0,
135
  sample_rate=44100
136
  )
137
  self.audio_ready = True
 
720
  def generate_footstep(self, aud_path):
721
  arr, rate = extract_second_audio_librosa(
722
  file_path=aud_path,
723
+ target_second=0,
724
  sample_rate=self.sample_rate
725
  )
726