title: Get voice from webkitspeechrecognition
body: <p>I want to get voice recorded during speech recognition. Based on confidence of recognized speech, the program will save or deny user's speech.</p>
  
  <p>To do above I have two choices:</p>
  
  <ol>
  <li><p>Record user's voice from browser and send to Node JS server. Then post voice to Google Speech API and get result. Based on confidence level do action.</p></li>
  <li><p>Recognize and record user speech at browser. If recognition confidence level is good, then send voice to Node JS server to save it.</p></li>
  </ol>
  
  <p>Second way seems to be good, but how can I get audio of user's speech?</p>
  
  <p>Note: Speech will be continuous and every part of text will last about one minute.</p>
  
  <p>Environment: Google Chrome v49, HTML5 (at browser side). Node JS (at server side)</p>
  
  <p>Thanks for your help.</p>
  
  <p>Edit #1 (Based on @raju's comment):</p>
  
  <p>I have tried following code</p>
  
  <pre><code>var recognition = new webkitSpeechRecognition();
  recognition.continuous = true;
  recognition.interimResults = true;
  recognition.lang = "tr-TR";
  recognition.onresult = function(event) { 
      console.log(event) 
  }
  recognition.start();
  </code></pre>
  
  <p>It works, but it only returns results of speech recognition. I want the raw sound data too. I looked up for different events and their parameters of "recognition" object, but none of them meets my needs. Is there any suggestions?</p>