Spaces:
Running
Running
ageraustine
commited on
Commit
•
ca50401
1
Parent(s):
10b890e
fix sample rate
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ if vocal_file:
|
|
89 |
mix_vocals = st.checkbox("Mix Vocals")
|
90 |
if mix_vocals and st_state.vocal_audio is not None:
|
91 |
# Load the vocal audio
|
92 |
-
vocal_audio, _ = librosa.load(vocal_file.read(),
|
93 |
|
94 |
# Adjust the vocal audio length to match the generated audio
|
95 |
vocal_audio = librosa.util.fix_length(vocal_audio, len(st_state.audio))
|
|
|
89 |
mix_vocals = st.checkbox("Mix Vocals")
|
90 |
if mix_vocals and st_state.vocal_audio is not None:
|
91 |
# Load the vocal audio
|
92 |
+
vocal_audio, _ = librosa.load(vocal_file.read(), mono=False)
|
93 |
|
94 |
# Adjust the vocal audio length to match the generated audio
|
95 |
vocal_audio = librosa.util.fix_length(vocal_audio, len(st_state.audio))
|