From ea3c05dcbb1ccb92cdc75f9c78ae52808587b0c7 Mon Sep 17 00:00:00 2001 From: Aka Diffusion <116415100+aka7774@users.noreply.github.com> Date: Fri, 8 Mar 2024 23:45:41 +0900 Subject: [PATCH] /voice method GET to POST --- server_fastapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_fastapi.py b/server_fastapi.py index ce6ed04..5a68b8b 100644 --- a/server_fastapi.py +++ b/server_fastapi.py @@ -101,7 +101,7 @@ if __name__ == "__main__": ) app.logger = logger - @app.get("/voice", response_class=AudioResponse) + @app.post("/voice", response_class=AudioResponse) async def voice( request: Request, text: str = Query(..., min_length=1, max_length=limit, description=f"セリフ"),