Added an audio capture function.