Standard API - method which doesn’t require root access. Check out every audio source before using. Many phones support recording using this method, from the microphone only (audio source “Microphone” should be selected).