added support for microphone input