kevinwang676
commited on
Commit
•
31eb529
1
Parent(s):
6a3fe23
Update app_share.py
Browse files- app_share.py +1 -1
app_share.py
CHANGED
@@ -265,7 +265,7 @@ def trim_audio(intervals, input_file_path, output_file_path):
|
|
265 |
|
266 |
if len(segment) < 5000:
|
267 |
# Calculate how many times to repeat the audio to make it at least 5 seconds long
|
268 |
-
repeat_count = (5000 // len(segment)) +
|
269 |
# Repeat the audio
|
270 |
longer_audio = segment * repeat_count
|
271 |
# Save the extended audio
|
|
|
265 |
|
266 |
if len(segment) < 5000:
|
267 |
# Calculate how many times to repeat the audio to make it at least 5 seconds long
|
268 |
+
repeat_count = (5000 // len(segment)) + 5
|
269 |
# Repeat the audio
|
270 |
longer_audio = segment * repeat_count
|
271 |
# Save the extended audio
|