Irpan commited on
Commit
a651122
·
1 Parent(s): 1dfec92
Files changed (1) hide show
  1. tts.py +1 -1
tts.py CHANGED
@@ -24,7 +24,7 @@ def synthesize(text, model_id):
24
  output = model(**inputs).waveform.cpu() # Move output back to CPU for saving
25
 
26
  output_path = "tts_output.wav"
27
- sample_rate = model.config.sample_rate
28
  scipy.io.wavfile.write(output_path, rate=sample_rate, data=output.numpy()[0])
29
 
30
  return output_path
 
24
  output = model(**inputs).waveform.cpu() # Move output back to CPU for saving
25
 
26
  output_path = "tts_output.wav"
27
+ sample_rate = model.config.sampling_rate
28
  scipy.io.wavfile.write(output_path, rate=sample_rate, data=output.numpy()[0])
29
 
30
  return output_path