Ask for microphone on onclick event
问题 The other day I stumbled upon with this example of a Javascript audio recorder: http://webaudiodemos.appspot.com/AudioRecorder/index.html Which I ended up using for implementing my own. The problem I'm having is that in this file: var audioContext = new webkitAudioContext(); var audioInput = null, realAudioInput = null, inputPoint = null, audioRecorder = null; var rafID = null; var analyserContext = null; var canvasWidth, canvasHeight; var recIndex = 0; /* TODO: - offer mono option - "Monitor