Irpan commited on
Commit
8bef169
·
1 Parent(s): 1417583
Files changed (1) hide show
  1. tts.py +3 -2
tts.py CHANGED
@@ -68,10 +68,11 @@ def synthesize_turkic_tts(text):
68
  c_mel = text2speech(text)['feat_gen']
69
  wav = vocoder.inference(c_mel)
70
 
71
- output = wav.view(-1).cpu()
 
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
 
 
68
  c_mel = text2speech(text)['feat_gen']
69
  wav = vocoder.inference(c_mel)
70
 
71
+ output = wav.view(-1).cpu().numpy()
72
+ print(output.shape)
73
 
74
  output_path = "tts_output.wav"
75
+ scipy.io.wavfile.write(output_path, rate=22050, data=output)
76
 
77
  return output_path
78