Spaces:
Running
Running
modify app
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def process_audio(input_audio, reference_audio):
|
|
48 |
if isinstance(output_audio, torch.Tensor):
|
49 |
output_audio = output_audio.cpu().numpy()
|
50 |
|
51 |
-
# Normalize output audio
|
52 |
-
output_audio = loudness_normalize(output_audio, sr)
|
53 |
|
54 |
# Denormalize the audio to int16
|
55 |
output_audio = denormalize_audio(output_audio, dtype=np.int16)
|
@@ -97,8 +97,8 @@ def perform_ito(input_audio, reference_audio, ito_reference_audio, num_steps, op
|
|
97 |
if isinstance(current_output, torch.Tensor):
|
98 |
current_output = current_output.detach().cpu().numpy()
|
99 |
|
100 |
-
# Normalize output audio
|
101 |
-
current_output = loudness_normalize(current_output, args.sample_rate)
|
102 |
|
103 |
# Denormalize the audio to int16
|
104 |
current_output = denormalize_audio(current_output, dtype=np.int16)
|
|
|
48 |
if isinstance(output_audio, torch.Tensor):
|
49 |
output_audio = output_audio.cpu().numpy()
|
50 |
|
51 |
+
# # Normalize output audio
|
52 |
+
# output_audio = loudness_normalize(output_audio, sr)
|
53 |
|
54 |
# Denormalize the audio to int16
|
55 |
output_audio = denormalize_audio(output_audio, dtype=np.int16)
|
|
|
97 |
if isinstance(current_output, torch.Tensor):
|
98 |
current_output = current_output.detach().cpu().numpy()
|
99 |
|
100 |
+
# # Normalize output audio
|
101 |
+
# current_output = loudness_normalize(current_output, args.sample_rate)
|
102 |
|
103 |
# Denormalize the audio to int16
|
104 |
current_output = denormalize_audio(current_output, dtype=np.int16)
|