Renpy dialog voice generator

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
User avatar
Miko-Class Veteran
Posts: 688
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia

Renpy dialog voice generator

#1 Post by Andredron »
Generates voice files based on a file (with text tags stripped).

The TTS is generated using elevenlabs, with my elevenlabslib library.

When you run the program, it will show a GUI that will prompt you to specify:

The dialog file
The directory in which to save the audio files
Your API key (will be stored in the system keyring for later runs)
After this it will pull a list of all voices available to your elevenlabs account, and will ask you to assign a voice to each character found in the dialog export.

It will then generate the audio files and save them as {identifier}.mp3, ready to be used with the auto voice option.

In case you run out of credits (or the generation of files is interrupted for some other reason) the program will detect that there are existing audio files and will give you the option to skip the ones that already exist.

Download this repo git clone
Open run.bat
In case you're not on windows, run.bat just creates a venv and install the requirements from requirements.txt, then runs the script, so you can just do that manually.

In addition, it will also perform a git pull whenever it's run.

Post Reply

Who is online

Users browsing this forum: errorinspeech