refactored the application to use the phones microphone directly