mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion.git
synced 2026-11-05 00:27:21 +00:00
[GH-ISSUE #50] How to use api #37
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
RVC-Project/Retrieval-based-Voice-Conversion#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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