Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting RVC to work #13

Open
Airmiz opened this issue Apr 30, 2024 · 11 comments
Open

Getting RVC to work #13

Airmiz opened this issue Apr 30, 2024 · 11 comments

Comments

@Airmiz
Copy link

Airmiz commented Apr 30, 2024

When I generate it runs and completes, but no sentences or audio is output.

Steps on how to get RVC working?
thanks,

@lukaszliniewicz
Copy link
Owner

Does it generate audio without RVC? To get RVC, you need to install RVC_CLI (https://github.com/blaise-tk/RVC_CLI). There are instructions in its repository.

@Airmiz
Copy link
Author

Airmiz commented May 1, 2024

right, I have the pth and index, it just crashes every time I attempt.

@lukaszliniewicz
Copy link
Owner

lukaszliniewicz commented May 1, 2024

Sorry, just to confirm: you have installed RVC_CLI and it is running? Does it crash without RVC? How have you installed Pandrator, with the installer?

@Airmiz
Copy link
Author

Airmiz commented May 1, 2024

Correct, Pandrator base running and work. What do you mean by RVC_CLI running?

@lukaszliniewicz
Copy link
Owner

Just if you can start it and if it's running alongside Pandrator.

@lukaszliniewicz
Copy link
Owner

lukaszliniewicz commented May 1, 2024

From their documentation:

Windows
Execute the [install.bat](https://github.com/blaise-tk/RVC_CLI/blob/main/install.bat) file to activate a Conda environment. Afterward, launch the application using env/python.exe main.py instead of the conventional python main.py command.

If you cloned the repository into, say, C:/AI, then run the install.bat from there, you would open Windows Terminal in that folder (right click and select the option to open the terminal) and run env/python.exe main.py.

@lukaszliniewicz
Copy link
Owner

Sorry, the actual command is env/python.exe main.py api.

@Airmiz
Copy link
Author

Airmiz commented May 1, 2024

This what I get running the generation with the API open

INFO: Started server process [12960]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:52083 - "POST /infer HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application

@cif232
Copy link

cif232 commented May 4, 2024

I ran into (what I think is the same issue) but was able to resolve it by making the change in this comment:
blaisewf/RVC_CLI#31 (comment)

to the api.py file from RVC_CLI .

Specifically changing the infer api to

@app.post("/infer")
async def infer(request: Request):
    command = ["python", "main.py", "infer"]

    json_data = await request.json()

    command += [f"--{key}={value}" for key, value in json_data.items()]

    return execute_command(command)

@Airmiz
Copy link
Author

Airmiz commented May 4, 2024

That fix the API error, now it just isn't generating any sentences/wav files.

@Airmiz
Copy link
Author

Airmiz commented May 5, 2024

using VoiceCraft if that is any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants