Email or username:

Password:

Forgot your password?
Maxim Lebedev

Ok, I have a task here: using #discordgo to broadcast a long audio file with music into a voice channel through a bot I'm making for a role-playing game. I've more or less learned how to do that.

3 comments
Maxim Lebedev

Now I need to overlay the same long audio file with music with several other short audio with voice recordings, near the end of the timing of the music. Ideally, I'd also slightly mute the background while the voices are playing and, if the voices are longer than the rest of the music, stretch the audio to fit all the voice recordings.

Maxim Lebedev

Fortunately, I don't need to do this in real time: I can combine the audio in advance, before it's played in the voice channel. But I don't know how to execute this combination automatically.

As far as I understand, I need to make an #ffmpeg call under the hood of the #Go code?

Maxim Lebedev

Here's a rough schema of what I want to accomplish. It is important to take into account that the files with voices can be of indefinite length (for example: a couple of seconds, or even minutes) and their number varies from three to five. But they all start playing one after another at about 90 minutes of music.

Go Up