Page 1 of 1

Renpy dialog voice generator(elevenlabslib)

Posted: Sun Dec 31, 2023 8:20 am
by Andredron
https://github.com/lugia19/renpyDialogToAudio

Renpy dialog voice generator
Generates voice files based on a dialog.tab 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.

See here for an installation and usage video.

Installation
Download this repo git clone
https://github.com/lugia19/renpyDialogToAudio.git
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.

Re: Renpy dialog voice generator(elevenlabslib)

Posted: Sat Jan 06, 2024 9:51 pm
by LunaLara
Thank you for your share, that is a great tool.