Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,5 @@ async def synthesize(text: str):
|
|
143 |
data_np_squeezed = np.squeeze(data_np)
|
144 |
|
145 |
scipy.io.wavfile.write("speech.wav", rate=model.config.sampling_rate, data=data_np_squeezed)
|
146 |
-
|
147 |
-
Audio(output, rate=model.config.sampling_rate, autoplay=True)
|
148 |
-
|
149 |
return FileResponse("speech.wav", media_type="audio/wav")
|
|
|
143 |
data_np_squeezed = np.squeeze(data_np)
|
144 |
|
145 |
scipy.io.wavfile.write("speech.wav", rate=model.config.sampling_rate, data=data_np_squeezed)
|
146 |
+
|
|
|
|
|
147 |
return FileResponse("speech.wav", media_type="audio/wav")
|