Sample code for audio capture