advanced audio capture, with demo

not refactored to be part of sound.py