Spaces:
Running
on
Zero
Running
on
Zero
fix: change the sound of instrumental
Browse files
app.py
CHANGED
@@ -348,7 +348,7 @@ def combine_stems_for_all(input_dir, output_format="mp3"):
|
|
348 |
# Load and combine stems
|
349 |
stems = {name: AudioSegment.from_file(path) for name, path in stem_paths.items()}
|
350 |
|
351 |
-
stems["instrumental"] = stems["instrumental"].apply_gain(-
|
352 |
combined = stems["vocals"].overlay(stems["bass"]).overlay(stems["others"]).overlay(stems["instrumental"])
|
353 |
|
354 |
# Trim silence at the end
|
|
|
348 |
# Load and combine stems
|
349 |
stems = {name: AudioSegment.from_file(path) for name, path in stem_paths.items()}
|
350 |
|
351 |
+
stems["instrumental"] = stems["instrumental"].apply_gain(-20)
|
352 |
combined = stems["vocals"].overlay(stems["bass"]).overlay(stems["others"]).overlay(stems["instrumental"])
|
353 |
|
354 |
# Trim silence at the end
|