Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
·
5fefea8
1
Parent(s):
cdf789d
fix
Browse files
app.py
CHANGED
@@ -226,7 +226,7 @@ def svc_main(sid, input_audio):
|
|
226 |
|
227 |
result_path = os.path.join(curr_tmp_path, 'out_song.wav')
|
228 |
played_togther.export(result_path, format="wav")
|
229 |
-
result, sampling_rate = soundfile.read(result_path)
|
230 |
|
231 |
return "Success", (sampling_rate, result)
|
232 |
|
|
|
226 |
|
227 |
result_path = os.path.join(curr_tmp_path, 'out_song.wav')
|
228 |
played_togther.export(result_path, format="wav")
|
229 |
+
result, sampling_rate = soundfile.read(result_path, dtype=np.int16)
|
230 |
|
231 |
return "Success", (sampling_rate, result)
|
232 |
|