So if you’d like to use an arbitrary range from an already done voice line without splitting it with an external audio editor, you could use the partial playback feature. This isn’t mentioned in the documentation, but it also works with the voice statement, just like that:
# game/script.rpy:99
translate piglatin start_bd1ad9e1:
# voice "voice/actor/line.ogg"
# e "We aim to provide a comprehensive framework for translating dialogue, strings, images, and styles."
voice "<from 0 to 9.226>voice/actor/line.ogg"
e "Eway aimway otay ovidepray away omprehensivecay ameworkfray..."
voice "<from 9.823 to 17.248>voice/actor/line.ogg"
e "...orfay anslatingtray ialogueday, ingsstray, imagesway, andway ylesstay."
Hope it helps someone… else besides me.
Original question
Well, it’s more like a feature request than a question… But let’s start from the beginning.
Сurrently, I’m working on a visual novel translation. And due to the difference in word length in the source and target languages, I often have to split translated lines into two parts (or sometimes even three) to fit into the textbox. Good thing that there is a feature in the Ren’Py translation toolkit that allows me to do it with ease!
This VN is fully voiced, so I have to split the voice lines as well. This could be done in any audio editor, and the process is quite simple. However, if you include these audio files into the translation patch, it will inevitably take extra disk space. It feels so wasteful to redistribute data that’s essentially already there! Apart from that, the translation patches produced by this method are quite lightweight, and I’d like to keep it up that way.
So it would be nice if you could select an arbitrary range from a source audio file instead of manually splitting it! And I think it could be useful for both translators and original authors. According to my observations, sometimes they also have to manually split the lines already made.


Great, this partial playback feature work exactly as I’d like it to! Thank you for pointing me to it. It isn’t mentioned in the translation or in the voice sections, so I didn’t managed to figure it out by myself.
And in terms of this VN's lore, it was merely a split second!