title: Obtaining audio data from android microphone using Cordova and JavaScript (without getUserMedia)
body: <p>I need to obtain frequency/pitch data from the microphone of an android device on the fly using JavaScript.</p>
  
  <p>I have done this for desktop/laptop browsers with getUserMedia and Web Audio API, but these are not supported on the vast majority of Android devices.</p>
  
  <p>I have tried using the cordova-plugin-media-capture however this opens an audio recorder which the user can then save or discard, and after saving you can use cordova-plugin-file to obtain the data as shown here: <a href="https://stackoverflow.com/a/32097634/5674976">https://stackoverflow.com/a/32097634/5674976</a> but I need it not to open the audio recorder, and instead perhaps just a record button, and once it is recording to provide the audio data immediately (so that it can detect the frequency data in real-time).</p>
  
  <p>I have seen recording functionality in place e.g. WhatsApp, Facebook Messenger etc. and so as a last resort - since I do not know Java - would it be possible to create a plugin using Java for Cordova?</p>
  
  <p>edit: I have also looked at cordova-plugin-media <a href="https://github.com/apache/cordova-plugin-media" rel="nofollow noreferrer">https://github.com/apache/cordova-plugin-media</a> which seems to provide amplitude data and current position data. I'm thinking I could figure out frequency by looking at the amplitude over time, or am I being naive?</p>