File size: 544 Bytes
614861a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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