finished the class but am getting an error with the alsaaudio output. may have to switch to using pyaudio