SOTA Open Source TTS
Fix infer warmup (#530)
spicysama4ae0d0734c45
diff --git a/tools/api.py b/tools/api.pyindex ca7e2b2..dc5a47d 100644--- a/tools/api.py+++ b/tools/api.py@@ -424,7 +424,8 @@ if __name__ == "__main__":text="Hello world.",references=[],reference_id=None,- max_new_tokens=0,+ max_new_tokens=1024,+ chunk_length=200,top_p=0.7,repetition_penalty=1.2,temperature=0.7,diff --git a/tools/smart_pad.py b/tools/smart_pad.pyindex d15bafd..de9dc15 100644--- a/tools/smart_pad.py+++ b/tools/smart_pad.py@@ -12,6 +12,7 @@ from tools.file import AUDIO_EXTENSIONS, list_filesthreshold = 10 ** (-50 / 20.0)+def process(file):waveform, sample_rate = torchaudio.load(str(file), backend="sox")if waveform.size(0) > 1:diff --git a/tools/webui.py b/tools/webui.pyindex 5c2358a..cff155d 100644--- a/tools/webui.py+++ b/tools/webui.py@@ -471,8 +471,8 @@ if __name__ == "__main__":enable_reference_audio=False,reference_audio=None,reference_text="",- max_new_tokens=2048,- chunk_length=100,+ max_new_tokens=1024,+ chunk_length=200,top_p=0.7,repetition_penalty=1.2,temperature=0.7,