VOICEVOX

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:

VOICEVOX

#1 Post by Andredron »

https://github.com/Neyunse/REVOX

This script uses VOICEVOX to generate tex-to-speach voices for renpy.

Important

It is recommended to use this generator only for placeholders. The audios generated by VOICEVOX are not of good quality.

Tip

The use of human voices is recommended, the voices generated with VOICEVOX are not perfect and human talent must always be supported.

How to use
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
once the packages are installed, go to renpy and generate dialogue.tab in "Extract dialogue".

Important

it is recommended to check "Remove text tags from dialog".

Move the dialogue.tab file to the root folder of the script (next to main.py) and run main.py with python.

It will start downloading VOICEVOX and you will have to run main.py again when it finishes downloading and you will have to wait for VOICEVOX to generate the voices, the voices are generated in /audio/.

Voices
in the speakers.json file you will find the list of voices you can use, the important thing is styles[0].id since that is the voice to include in the config.py file.

Config file
character="h" # renpy character define
def_lang="ES" # Default renpy dialogues language
speaker=20 # speaker id
Important

This script can only help you generate voices for a character you specify.

You can listen to an example of the voices in: https://voicevox.hiroshiba.jp/#characters

Post Reply

Who is online

Users browsing this forum: Google [Bot]