This patch moves to use the sox package instead of arecord for getting microphone data, and it also validates that both sox and rec and installed. We also add a standalone example.