Spaces:
Running
Running
Irpan
commited on
Commit
·
a651122
1
Parent(s):
1dfec92
asr
Browse files
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.
|
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
|