Spaces:
Running
Running
File size: 307 Bytes
815b978 c44df3b | 1 2 3 4 5 6 7 8 9 10 11 | from pydantic import BaseModel, Field
class TranscribeResponse(BaseModel):
transcript: str = Field(..., min_length=1, max_length=5000)
class SynthesizeRequest(BaseModel):
text: str = Field(..., min_length=1, max_length=300)
voice: str = Field(default="am_adam", min_length=2, max_length=32)
|