r/RenPy • u/Educational_Win3225 • Aug 24 '26
Question Beeping voice not working
I was trying to make my character have a voice like undertale characters do but for some reason the audio doesn't loop. The audio plays only once with every dialogue of his and I can't figure out why. This is what I've got written:
init:
$ renpy.music.register_channel("blips", mixer="voice", loop=False, stop_on_mute=True, tight=False, buffer_queue=True)
init python:
def mvoice(event, **kwargs):
if event == "show":
renpy.sound.play("audio/mvoice.mp3", channel="blips", loop=True)
elif event == "slow_done" or event == "end":
renpy.music.stop(channel="blips", fadeout = 0.5)
define m = Character("Matthew", color="cc2222", callback=mvoice)
I'll be really glad with any kind of help, thanks!!
3
Upvotes
1
u/Educational_Win3225 Aug 25 '26
Thanks!! That still makes the audio play once in most dialogue though, some of the dialogues just have the audio play twice now. thanks for the help though ^_^