mirror of
https://github.com/OpenBMB/VoxCPM
synced 2025-12-12 11:58:11 +00:00
remove \n from input text
This commit is contained in:
@@ -130,6 +130,7 @@ class VoxCPM:
|
|||||||
if (prompt_wav_path is None) != (prompt_text is None):
|
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")
|
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
|
temp_prompt_wav_path = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user