Renpy dialog voice generator(elevenlabslib)

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
Message
Author
User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Renpy dialog voice generator(elevenlabslib)

#1 Post 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.

LunaLara
Newbie
Posts: 2
Joined: Thu Oct 26, 2023 11:27 am
Contact:

Re: Renpy dialog voice generator(elevenlabslib)

#2 Post by LunaLara »

Thank you for your share, that is a great tool.

Post Reply

Who is online

Users browsing this forum: No registered users