from pymumble.pymumble_py3 import Mumble

class MumbleClient:
    def __init__(self, host, user, channel):
        self.mumble = Mumble(host, user, debug=False)
        self.mumble.start()
        self.mumble.is_ready()

        self.mumble.set_receive_sound(True)
        self.mumble.users.myself.unmute()

        self.mumble.channels.find_by_name(channel).move_in()
        # mumble.set_bandwidth(200000)

    def handle_loop(self):
        # do audio stuff
        sd = "sd"

@@ -33,16 +33,44 @@
 t Mumble
+, constants%0Aimport alsaaudio
 %0A%0Aclass 
@@ -398,18 +398,21 @@
         
-# 
+self.
 mumble.s
@@ -441,70 +441,660 @@
     
-def handle_loop(self):%0A        # do audio stuff%0A        sd = %22sd%22
+    self.mumble.callbacks.set_callback(constants.PYMUMBLE_CLBK_SOUNDRECEIVED, self.play_sound)%0A%0A        # setup sound output%0A        self.device = alsaaudio.PCM(mode=alsaaudio.PCM_NONBLOCK, cardindex=0)%0A        self.device.setchannels(1)  # use only one channel of audio (aka mono)%0A        self.device.setrate(48000)  # how many samples per second%0A        self.device.setformat(alsaaudio.PCM_FORMAT_S16_LE)  # sample format%0A        self.device.setperiodsize(1920)%0A%0A    def send_audio_chunk(self, audio_chunk):%0A        self.mumble.sound_output.add_sound(audio_chunk)%0A%0A%0A    def play_sound(self, info, sound_chunk):%0A        self.device.write(sound_chunk.pcm)
 %0A

Implement alsa