Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files- infertest.py +1 -1
infertest.py
CHANGED
|
@@ -116,7 +116,7 @@ def api_convert_voice():
|
|
| 116 |
|
| 117 |
# Save the file to a temporary path
|
| 118 |
filename = werkzeug.utils.secure_filename(file.filename)
|
| 119 |
-
input_audio_path = os.path.join(
|
| 120 |
file.save(input_audio_path)
|
| 121 |
|
| 122 |
output_path = convert_voice(spk_id, input_audio_path, voice_transform)
|
|
|
|
| 116 |
|
| 117 |
# Save the file to a temporary path
|
| 118 |
filename = werkzeug.utils.secure_filename(file.filename)
|
| 119 |
+
input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio.{filename.split('.')[-1]}")
|
| 120 |
file.save(input_audio_path)
|
| 121 |
|
| 122 |
output_path = convert_voice(spk_id, input_audio_path, voice_transform)
|