diff --git a/fish_speech/utils/schema.py b/fish_speech/utils/schema.py index 1ef4dcd3..fc3c9eda 100644 --- a/fish_speech/utils/schema.py +++ b/fish_speech/utils/schema.py @@ -79,7 +79,7 @@ def __repr__(self) -> str: class ServeTTSRequest(BaseModel): - text: str + text: str = Field(..., min_length=1) chunk_length: Annotated[int, conint(ge=100, le=1000, strict=True)] = 200 # Audio format format: Literal["wav", "pcm", "mp3", "opus"] = "wav"