/voice method GET to POST
This commit is contained in:
@@ -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"セリフ"),
|
||||||
|
|||||||
Reference in New Issue
Block a user