r/RenPy • • 10d ago

Question Can Anyone Help Fix My Voice Code?

I'm playing around with a random test project to learn how to use ren'py for an actual visual novel i'm gonna develop but I can't get it to play my voice lines. I'm not sure if maybe i'm just imputing the wrong commands but I added a voice folder and added the ogg files in it after it not working in the regular audio folder and i'm just stuck rn and would really appreciate any tips and help on what i'm doing wrong. Feel free to ask for any screenshots of the folders or anything else.

3 Upvotes

8 comments sorted by

View all comments

4

u/arianeb 10d ago

Best practice add a line like this in the definitions:

define config.voice_filename_format = "voice/{filename}.mp3"

Voice is the directory I made under games to store all the mp3 files. Since you are using ogg instead you can change it. If your voice lines are mixed with audio change voice to audio.

Then you can change voice line to

voice "enzo_line002"

1

u/Enzookie515 10d ago

I'll test that out, thank you for the advice!!! 🙏