import pyaudio
def LOOPBACK():
loopback = p.open(format=p.get_format_from_width(WIDTH),
channels=CHANNELS,
input_device_index = 1,
output_device_index = 6,
rate=RATE,
input=True,
output=True,
frames_per_buffer=CHUNK)
print("*recording")
while True:
data = loopback.read(CHUNK)
loopback.write(data, CHUNK)