amir22010 commited on
Commit
d3c7ce9
·
verified ·
1 Parent(s): 0b32c56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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