modify send_audio function. because of timing of multithread, time.sleep needs