remove \n from input text

This commit is contained in:
刘鑫
2025-09-18 14:52:22 +08:00
parent 1a46c5d1ad
commit cef6aefb3d

View File

@@ -130,6 +130,7 @@ class VoxCPM:
if (prompt_wav_path is None) != (prompt_text is None):
raise ValueError("prompt_wav_path and prompt_text must both be provided or both be None")
text = text.replace("\n", " ")
temp_prompt_wav_path = None
try: