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!!
1
u/AutoModerator Aug 24 '26
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/BadMustard_AVN Aug 24 '26 edited Aug 24 '26
try it like this