2017-01-09 59 views
0

我一直在嘗試讓我的機器人在播放其他音樂時播放短的音頻文件。我沒有成功。Python中的不和諧Bot。一次播放兩個音頻文件

我試圖在播放時使用play_audio功能,使用create_ffmpeg_player播放其他音頻文件,但play_audio只是發出崩潰的聲音,不播放音頻文件。

async def cmd_noise(self, message): 
    vc = message.author.voice_channel 
    voice_client = await self.get_voice_client(vc) 
    voice_client.play_audio('other/Qoo.mp3') 

是否有一種方法可以讓一個不一致的機器人同時播放兩個音頻文件?

回答

0

ffmpeg沒有辦法一次播放2個音頻文件。你只能製作另一個播放想要的聲音的機器人。