octave functions to perform time and frequency domain analysis using alsa access to mic and speakers