Spaces:
Sleeping
Sleeping
helloWorld199
commited on
Commit
•
7b8da10
1
Parent(s):
4b51a1b
Update src/main.py
Browse files- src/main.py +1 -1
src/main.py
CHANGED
@@ -138,7 +138,7 @@ def convert_to_stereo(audio_path):
|
|
138 |
return audio_path
|
139 |
|
140 |
def normalize_audio(input_audio_path, output_audio_path):
|
141 |
-
y1, sr1 = librosa.load(
|
142 |
meter = pyln.Meter(sr1)
|
143 |
lufs_left1 = meter.integrated_loudness(y1[0])
|
144 |
lufs_right1 = meter.integrated_loudness(y1[1])
|
|
|
138 |
return audio_path
|
139 |
|
140 |
def normalize_audio(input_audio_path, output_audio_path):
|
141 |
+
y1, sr1 = librosa.load(input_audio_path, mono = False)
|
142 |
meter = pyln.Meter(sr1)
|
143 |
lufs_left1 = meter.integrated_loudness(y1[0])
|
144 |
lufs_right1 = meter.integrated_loudness(y1[1])
|