Spaces:
Sleeping
Sleeping
helloWorld199
commited on
Update src/my_utils.py
Browse files- src/my_utils.py +5 -0
src/my_utils.py
CHANGED
@@ -19,3 +19,8 @@ def load_audio(file, sr):
|
|
19 |
raise RuntimeError(f"Failed to load audio: {e}")
|
20 |
|
21 |
return np.frombuffer(out, np.float32).flatten()
|
|
|
|
|
|
|
|
|
|
|
|
19 |
raise RuntimeError(f"Failed to load audio: {e}")
|
20 |
|
21 |
return np.frombuffer(out, np.float32).flatten()
|
22 |
+
|
23 |
+
def show_stored_files(root_dir):
|
24 |
+
for root, dirs, files in os.walk(root_dir):
|
25 |
+
for file in files:
|
26 |
+
print(os.path.join(root, file))
|