| 16 | |
| 17 | |
| 18 | class TTSRequest(BaseModel): |
| 19 | ref_wav_path: str |
| 20 | prompt_text: str |
| 21 | text: str |
| 22 | temperature: Optional[float]=1.0 |
| 23 | repetition_penalty: Optional[float]=1.0 |
| 24 | speed: Optional[float]=1.0 |
| 25 | scaling_factor: Optional[float]=1.0 |
| 26 | |
| 27 | @app.post("/get_tts") |
| 28 | async def get_tts(request_data: TTSRequest): |
nothing calls this directly
no outgoing calls
no test coverage detected