Using the microphone on a device | Aquro Help Center

Intro

Built into Aquro we have the ability to easily capture audio via a device microphone and save it to the device as an audio file.

Important: Usage of the media capture features on Android require a audio recording app on the phone. If a recording app is missing the media capture features will fail.

Via Visual Coding

The following Visual Coding blocks will assist you in implementing recording functionality in your app:

Device.Mic.GetAudioFile
Lets the user record an audio file and returns the path of the file.

Parameters:
None

Return values:
FilePath (Value) - Path of the file recorded
Error (Value) - Error if something went wrong

Outlets:
Done - Called when a recorded file was returned
Cancelled - Called when the user cancelled the recording without returning a recording
Error - Called if something went wrong

 

 

Via JavaScript and advanced code usage:

You can always use your own custom JavaScript code to control the recording of audio files.

For audio recording, Aquro is using the cordova-plugin-media-capture plugin.
More info: https://github.com/apache/cordova-plugin-media-capture