gets rid of the while loop in speaker.lua