Irpan commited on
Commit
00a9c71
·
1 Parent(s): 4dcae01
Files changed (1) hide show
  1. tts.py +2 -2
tts.py CHANGED
@@ -6,7 +6,7 @@ from espnet2.bin.tts_inference import Text2Speech
6
  from turkicTTS_utils import normalization
7
  import util
8
 
9
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
10
 
11
  # Load processor and model
12
  models_info = {
@@ -72,6 +72,6 @@ def synthesize_turkic_tts(text):
72
 
73
  output_path = "tts_output.wav"
74
  scipy.io.wavfile.write(output_path, rate=22050, data=output.numpy()[0])
75
-
76
  return output_path
77
 
 
6
  from turkicTTS_utils import normalization
7
  import util
8
 
9
+ device = "cuda" if torch.cuda.is_available() else "cpu"
10
 
11
  # Load processor and model
12
  models_info = {
 
72
 
73
  output_path = "tts_output.wav"
74
  scipy.io.wavfile.write(output_path, rate=22050, data=output.numpy()[0])
75
+
76
  return output_path
77