import configparser
import time
import RPi.GPIO as GPIO

from client import MumbleClient

class InterCom:

    def __init__(self):
        config = configparser.ConfigParser()
        config.read('intercom.ini')
        self.mumble_client = MumbleClient(config['mumbleclient'])
        self.exit = False
        self.send_input = False


        if config['general']['gpiotype'] == 'BCM':
            GPIO.setmode(GPIO.BCM)

        self.button = int(config['general']['button'])
        GPIO.setup(self.button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

    def run(self):
        while not self.exit:
            if GPIO.input(self.button):
                self.mumble_client.send_input_audio()

if __name__ == '__main__':
    try:
        InterCom().run()
    except Exception as e:
        raise e
    finally:
        GPIO.cleanup()

@@ -301,41 +301,8 @@
 lse%0A
-        self.send_input = False%0A%0A
 %0A   
@@ -510,16 +510,17 @@
 _DOWN)%0A%0A
+%0A
     def 
@@ -652,16 +652,83 @@
 _audio()
+%0A            else:%0A                self.mumble_client.clear_input()
 %0A%0Aif __n

Add clearing if not recording and remove useless member