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"セリフ"),