documentation index ◦ reference manual ◦ function index
Ren'Py includes support for adding voice acting to a game. This is done through two additional statements.
The voice "filename" statement plays the voice file given in filename.
The voice sustain statement continues playing the previous voice file.
A voice file is played at the start of the first interaction following a voice statement. It is terminated at the start of the next interaction, unless a voice sustain statement is given that continues playing it.
voice "eileen1.ogg" e "I'm now saying something." "But she stopped saying it, because this statement started." voice "eileen2.ogg" e "Now I'm saying something else..." voice sustain e "And I'll keep saying it!"
Function Equivalents. There are two functions corresponding to the two voice statements.
Function: | voice | (filename): |
Plays the voice in filename. Equivalent to voice.
Function: | voice_sustain | (): |
Continues playing the current voice file. Equivalent to voice sustain.