Record audio and upload recorded file at the same time

Currently I am developing the android application like Shazam which could listen and recognise the song title from the recording audio.

To record the audio, I am using this plugin -

But the problem with this plugin is that it only saves the file once it call media.stopRecord(). I need to upload the audio file to server every interval without stopping the recording.

How could I achieve that?