Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,8 @@ def process_audio(audio_file, pitch_shift_amount, formant_shift_amount):
|
|
69 |
if audio_file is None:
|
70 |
return None
|
71 |
|
72 |
-
|
|
|
73 |
if sr is None or audio is None:
|
74 |
return None
|
75 |
|
|
|
69 |
if audio_file is None:
|
70 |
return None
|
71 |
|
72 |
+
# Use the audio_file path directly
|
73 |
+
sr, audio = change_voice(audio_file, pitch_shift_amount, formant_shift_amount)
|
74 |
if sr is None or audio is None:
|
75 |
return None
|
76 |
|