Spaces:
Runtime error
Runtime error
anyantudre
commited on
Commit
•
9f0bf0f
1
Parent(s):
5c30e04
Rename text_to_speech.py to goai_tts.py
Browse files
text_to_speech.py → goai_tts.py
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
-
import time
|
2 |
import torch
|
3 |
import scipy
|
|
|
4 |
from transformers import set_seed, pipeline
|
5 |
|
6 |
|
@@ -33,5 +33,5 @@ def goai_tts(texte, device):
|
|
33 |
speech = synthesiser(texte)
|
34 |
wavfile = scipy.io.wavfile.write("finetuned_output.wav", rate=speech["sampling_rate"], data=speech["audio"][0])
|
35 |
|
36 |
-
print("Temps écoulé: ", int(time.time() - start_time), "
|
37 |
return wavfile
|
|
|
|
|
1 |
import torch
|
2 |
import scipy
|
3 |
+
import time
|
4 |
from transformers import set_seed, pipeline
|
5 |
|
6 |
|
|
|
33 |
speech = synthesiser(texte)
|
34 |
wavfile = scipy.io.wavfile.write("finetuned_output.wav", rate=speech["sampling_rate"], data=speech["audio"][0])
|
35 |
|
36 |
+
print("Temps écoulé: ", int(time.time() - start_time), " secondes")
|
37 |
return wavfile
|