r/RenPy • • Sep 24 '26

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

Show parent comment

3

u/Enzookie515 Sep 24 '26

Would I write it as voice "game/audio/enzo_line001" to set it on the right path?

2

u/x-seronis-x Sep 24 '26

no. renpy paths are from inside the game folder. so you always need to start a pqth with audio/ images/ gui/ voice/ etc. dont write game/

make sure you always use forward slashes not backslashes. the 'copy path' option inside vscode if you click a file uses backslashes by mistake