personabot-api / app /models /speech.py
GitHub Actions
Deploy 2e8cff3
c44df3b
raw
history blame contribute delete
307 Bytes
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)