Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,10 @@ async def synthesize(request: Request):
|
|
| 44 |
mel_output_base64 = plot_data([mel_output_data, mel_output_postnet_data, alignments_data])
|
| 45 |
|
| 46 |
# Audio Synthesis begins
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
| 48 |
hifigan_checkpoint="generator_v1"
|
| 49 |
|
| 50 |
# Generate audio using Hifigan
|
|
|
|
| 44 |
mel_output_base64 = plot_data([mel_output_data, mel_output_postnet_data, alignments_data])
|
| 45 |
|
| 46 |
# Audio Synthesis begins
|
| 47 |
+
buffer = BytesIO()
|
| 48 |
+
np.save(buffer, mel_output_data)
|
| 49 |
+
input_mel = buffer.getvalue()
|
| 50 |
+
|
| 51 |
hifigan_checkpoint="generator_v1"
|
| 52 |
|
| 53 |
# Generate audio using Hifigan
|