Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -211,6 +211,8 @@ def voice_conversion(apikey, upload, audio, choice1):
|
|
| 211 |
|
| 212 |
rate1, data1 = wavfile.read("output.wav")
|
| 213 |
|
|
|
|
|
|
|
| 214 |
#data1 = np.asarray(data1, dtype=np.int16)
|
| 215 |
|
| 216 |
write(target_audio, upload[0], upload[1])
|
|
|
|
| 211 |
|
| 212 |
rate1, data1 = wavfile.read("output.wav")
|
| 213 |
|
| 214 |
+
data1 = (data1 * 32767).astype(np.int16)
|
| 215 |
+
|
| 216 |
#data1 = np.asarray(data1, dtype=np.int16)
|
| 217 |
|
| 218 |
write(target_audio, upload[0], upload[1])
|