@Override
    public boolean isRecording() {
        return recorderState != RECORDER_STATE_IDLE;
    }
Helper class for audio recording and saving as .wav
app/src/main/java/com/cleveroad/example/AudioRecorder.java