Commit
·
82f84b6
1
Parent(s):
89955d0
final
Browse files
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=
|
| 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=
|
| 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 |
|