Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def text_to_speech(text):
|
|
21 |
# Running Vocoder (spectrogram-to-waveform)
|
22 |
waveforms = hifi_gan.decode_batch(mel_output)
|
23 |
# Save the waverform
|
24 |
-
outfile = f"{os.path.join(os.getcwd(), uuid.uuid4())}.wav"
|
25 |
torchaudio.save(outfile, waveforms.squeeze(1), 22050)
|
26 |
return outfile
|
27 |
|
|
|
21 |
# Running Vocoder (spectrogram-to-waveform)
|
22 |
waveforms = hifi_gan.decode_batch(mel_output)
|
23 |
# Save the waverform
|
24 |
+
outfile = f"{os.path.join(os.getcwd(), str(uuid.uuid4()))}.wav"
|
25 |
torchaudio.save(outfile, waveforms.squeeze(1), 22050)
|
26 |
return outfile
|
27 |
|