/voice method GET to POST

This commit is contained in:
Aka Diffusion
2024-03-08 23:45:41 +09:00
committed by GitHub
parent 46935c6917
commit ea3c05dcbb

View File

@@ -101,7 +101,7 @@ if __name__ == "__main__":
) )
app.logger = logger app.logger = logger
@app.get("/voice", response_class=AudioResponse) @app.post("/voice", response_class=AudioResponse)
async def voice( async def voice(
request: Request, request: Request,
text: str = Query(..., min_length=1, max_length=limit, description=f"セリフ"), text: str = Query(..., min_length=1, max_length=limit, description=f"セリフ"),