Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files- infertest.py +3 -1
infertest.py
CHANGED
@@ -96,6 +96,8 @@ def clean():
|
|
96 |
gr.Slider.update(visible=False)
|
97 |
)
|
98 |
|
|
|
|
|
99 |
@app.route('/convert_voice', methods=['POST'])
|
100 |
def api_convert_voice():
|
101 |
data = request.json
|
@@ -114,7 +116,7 @@ def convert_voice(spk_id, input_audio_path, voice_transform):
|
|
114 |
sid=spk_id,
|
115 |
input_audio_path=input_audio_path,
|
116 |
f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_key
|
117 |
-
f0_file=None
|
118 |
f0_method="rmvpe",
|
119 |
file_index=None, # Assuming file_index_path corresponds to file_index
|
120 |
index_rate=0.75,
|
|
|
96 |
gr.Slider.update(visible=False)
|
97 |
)
|
98 |
|
99 |
+
|
100 |
+
|
101 |
@app.route('/convert_voice', methods=['POST'])
|
102 |
def api_convert_voice():
|
103 |
data = request.json
|
|
|
116 |
sid=spk_id,
|
117 |
input_audio_path=input_audio_path,
|
118 |
f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_key
|
119 |
+
f0_file=None ,
|
120 |
f0_method="rmvpe",
|
121 |
file_index=None, # Assuming file_index_path corresponds to file_index
|
122 |
index_rate=0.75,
|