Skip to content

How to use api #50

@usagi87

Description

@usagi87

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions