Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/ntt123/WaveGRU-Text-To-Speech
Browse files- inference.py +1 -1
inference.py
CHANGED
@@ -69,7 +69,7 @@ def mel_to_wav(net, netcpp, mel, config):
|
|
69 |
mel = np.pad(mel, [(0, 0), (pad, pad), (0, 0)], mode="edge")
|
70 |
ft = wavegru_inference(net, mel)
|
71 |
ft = jax.device_get(ft[0])
|
72 |
-
wav = netcpp.inference(ft, 0
|
73 |
wav = np.array(wav)
|
74 |
wav = librosa.mu_expand(wav - 127, mu=255)
|
75 |
wav = librosa.effects.deemphasis(wav, coef=0.86)
|
|
|
69 |
mel = np.pad(mel, [(0, 0), (pad, pad), (0, 0)], mode="edge")
|
70 |
ft = wavegru_inference(net, mel)
|
71 |
ft = jax.device_get(ft[0])
|
72 |
+
wav = netcpp.inference(ft, 1.0)
|
73 |
wav = np.array(wav)
|
74 |
wav = librosa.mu_expand(wav - 127, mu=255)
|
75 |
wav = librosa.effects.deemphasis(wav, coef=0.86)
|