I’ve tried Voice Recorder from F-droid, but for some reason it isn’t working. I’ve recently changed the operating system from MIUI 12 to Lineage OS, so I don’t know if FOSS software may have issues recording audio.