vlsp2023-tts / model.py
hahunavth
add source code
614861a
raw
history blame
544 Bytes
from fastapi import UploadFile
from pydantic import BaseModel
class SynthesisRequest(BaseModel):
input_text: str
emotion: str
class SynthesisResponse(BaseModel):
data: str
class TransferRequest(BaseModel):
input_text: str
ref_audio: UploadFile
class TransferResponse(BaseModel):
data: str
class LoginRequest(BaseModel):
email: str
password: str
class LoginResponse(BaseModel):
access_token: str
class BaseResponse(BaseModel):
status: int = 1
message: str = ""
result: object = None