plot waveform in real time
save waveform to .wav file