change parameters
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def tts(text):
|
|
50 |
x_tst = stn_tst.unsqueeze(0)
|
51 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
52 |
# print(stn_tst.size())
|
53 |
-
audio = net_g.infer(x_tst, x_tst_lengths, noise_scale=.667, noise_scale_w=0.8, length_scale=
|
54 |
0, 0].data.float().numpy()
|
55 |
return "Success", (hps.data.sampling_rate, audio)
|
56 |
|
|
|
50 |
x_tst = stn_tst.unsqueeze(0)
|
51 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
52 |
# print(stn_tst.size())
|
53 |
+
audio = net_g.infer(x_tst, x_tst_lengths, noise_scale=.667, noise_scale_w=0.8, length_scale=1.25)[0][
|
54 |
0, 0].data.float().numpy()
|
55 |
return "Success", (hps.data.sampling_rate, audio)
|
56 |
|