PhoneGap, through the Cordova
media-capture plugin API, gives developers the ability to interact with the audio recording application on their device and save the recorded audio file for later use.
We'll make use of the
Capture object and the
captureAudio method of the media plugin API. The method will invoke the native device audio recording application to record our audio:
audiorecordby running the following command:
phonegap create audiorecord com.myapp.audiorecord audiorecord
cordova platform add ios cordova platform add android