[GH-ISSUE #50] How to use api #37

Open
opened 2026-10-20 09:53:21 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @usagi87 on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/50

hey,
I installed rvc using pip install rvc, I also install the assets-download.sh models. and started the server using poetry run poe rvc-api. The server starts but when using the example given curl -X 'POST'
'http://127.0.0.1:8000/inference'
-H 'accept: application/json'
-H 'Content-Type: multipart/form-data'
-F 'modelpath=model.pth'
-F 'input=input.wav'
-o output.wav
It return {"detail":[{"loc":["query","input_audio"],"msg":"field required","type":"value_error.missing"},{"loc":["body"],"msg":"value is not a valid path","type":"typ>
and the server gives a: 127.0.0.1:52308 - "POST /inference HTTP/1.1" 422 Unprocessable Entity
How is the api supposed be used correctly. Thanks

Originally created by @usagi87 on GitHub (May 28, 2025). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/50 hey, I installed rvc using pip install rvc, I also install the assets-download.sh models. and started the server using poetry run poe rvc-api. The server starts but when using the example given curl -X 'POST' \ 'http://127.0.0.1:8000/inference' \ -H 'accept: application/json' \ -H 'Content-Type: multipart/form-data' \ -F 'modelpath=model.pth' \ -F 'input=input.wav' \ -o output.wav It return {"detail":[{"loc":["query","input_audio"],"msg":"field required","type":"value_error.missing"},{"loc":["body"],"msg":"value is not a valid path","type":"typ> and the server gives a: 127.0.0.1:52308 - "POST /inference HTTP/1.1" 422 Unprocessable Entity How is the api supposed be used correctly. Thanks
Author
Owner

@Tps-F commented on GitHub (Jul 13, 2025):

Try specifying an absolute path. Or specify the correct relative path as seen from the project with

<!-- gh-comment-id:3067084384 --> @Tps-F commented on GitHub (Jul 13, 2025): Try specifying an absolute path. Or specify the correct relative path as seen from the project with
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion#37
No description provided.