Spaces:
Runtime error
Runtime error
Commit
·
84943ba
1
Parent(s):
2a28f2b
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def get_chunk_times(in_filename, silence_threshold, silence_duration=1):
|
|
26 |
|
27 |
logging.info(f"Absolue path: {fpath}")
|
28 |
|
29 |
-
command = f"ffmpeg -i {
|
30 |
out = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
31 |
|
32 |
stdout, stderr = out.communicate()
|
|
|
26 |
|
27 |
logging.info(f"Absolue path: {fpath}")
|
28 |
|
29 |
+
command = f"ffmpeg -i {in_filename} -af silencedetect=n=-{silence_threshold}dB:d={silence_duration} -f null - "
|
30 |
out = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
31 |
|
32 |
stdout, stderr = out.communicate()
|