SOTA Open Source TTS
Remove silence padding (it make sounds unnatural)
Lengyue58cdfd7b5c76
diff --git a/tools/api.py b/tools/api.pyindex 13c817a..ff900b3 100644--- a/tools/api.py+++ b/tools/api.py@@ -156,7 +156,6 @@ def inference(req: InvokeRequest):indices=result[None], feature_lengths=feature_lengths, return_audios=True)[0, 0]fake_audios = fake_audios.float().cpu().numpy()- fake_audios = np.concatenate([fake_audios, np.zeros((11025,))], axis=0)if req.streaming:yield (fake_audios * 32768).astype(np.int16).tobytes()diff --git a/tools/webui.py b/tools/webui.pyindex ee6fbb4..430fd1f 100644--- a/tools/webui.py+++ b/tools/webui.py@@ -139,7 +139,6 @@ def inference(indices=result[None], feature_lengths=feature_lengths, return_audios=True)[0, 0]fake_audios = fake_audios.float().cpu().numpy()- fake_audios = np.concatenate([fake_audios, np.zeros((11025,))], axis=0)if streaming:yield (fake_audios * 32768).astype(np.int16).tobytes(), None